]> git.friedersdorff.com Git - max/saltfiles.git/blob - states/vim/files/vimrc
Remove VimCompletesMe from plugins
[max/saltfiles.git] / states / vim / files / vimrc
1 :let mapleader = "-"
2 :let maplocalleader = "\\"
3
4 set nocompatible              " be iMproved, required
5 filetype off                  " required
6
7 " set the runtime path to include Vundle and initialize
8 set rtp+=~/.vim/bundle/Vundle.vim
9 call vundle#begin()
10 " alternatively, pass a path where Vundle should install plugins
11 " call vundle#begin('~/some/path/here')
12 Plugin 'gmarik/Vundle.vim'
13 Plugin 'jelera/vim-javascript-syntax'
14 Plugin 'noahfrederick/vim-noctu'
15 Plugin 'pangloss/vim-javascript'
16 Plugin 'Yggdroot/indentLine'
17 Plugin 'scrooloose/syntastic'
18 Plugin 'ternjs/tern_for_vim'
19 Plugin 'docunext/closetag.vim'
20 Plugin 'vim-airline/vim-airline'
21 Plugin 'vim-airline/vim-airline-themes'
22 Plugin 'airblade/vim-gitgutter'
23 Plugin 'tpope/vim-fugitive'
24 Plugin 'kien/ctrlp.vim'
25 Plugin 'editorconfig/editorconfig-vim'
26 Plugin 'LaTeX-Box-Team/LaTeX-Box'
27 Plugin 'hynek/vim-python-pep8-indent'
28 Plugin 'vim-scripts/octave.vim--'
29 Plugin 'vim-scripts/MatlabFilesEdition'
30 Plugin 'flazz/vim-colorschemes'
31 Plugin 'benmills/vimux'
32 Plugin 'tmhedberg/SimpylFold'
33 Plugin 'saltstack/salt-vim'
34 Plugin 'fatih/vim-go'
35 Plugin 'gu-fan/riv.vim'
36 Plugin 'lepture/vim-jinja'
37 Plugin 'aklt/plantuml-syntax'
38 Plugin 'vim-python/python-syntax'
39 Plugin 'luochen1990/rainbow'
40 Plugin 'majutsushi/tagbar'
41
42 " All of your Plugins must be added before the following line
43 call vundle#end()            " required
44 filetype plugin indent on    " required
45
46 " Swapfiles
47 set backupdir=$HOME/.vim/backup//
48
49 " Random look and feel stuff
50 syntax on
51 set background=dark
52 colorscheme molokai
53 " set expandtab
54 " set shiftwidth=2
55 " set softtabstop=2
56 set relativenumber
57 set number
58
59 let g:html_indent_inctags = "html,body,head,tbody"
60 let g:indentLine_color_term = 200
61
62 " syntastic
63 set statusline+=%#warningmsg#
64 set statusline+=%{SyntasticStatuslineFlag()}
65 set statusline+=%*
66
67 let g:syntastic_always_populate_loc_list = 1
68 let g:syntastic_auto_loc_list = 2
69 let g:syntastic_check_on_open = 1
70 let g:syntastic_check_on_wq = 1
71 let g:syntastic_javascript_checkers = ['eslint']
72 let g:syntastic_python_python_exec = '/usr/bin/python3'
73 let g:syntastic_python_checkers = ['flake8']
74 let g:syntastic_aggregate_errors = 1
75
76 " Syntastic C++11
77 let g:syntastic_cpp_compiler = 'g++'
78 let g:syntastic_cpp_compiler_options = '-std=c++14'
79
80 set laststatus=2
81 " Set this to 1 if powerline fonts are installed.
82 let g:airline_powerline_fonts = 1
83 set timeoutlen=1000
84 let g:airline#extensions#tabline#enabled = 1
85 let g:airline#extensions#tabline#fnamemod = ':t'
86
87 " Setting wildignore
88 set wildignore+=venv
89 set wildignore+=.git,.hg.svn
90
91 " CtrlP
92 let g:ctrlp_working_path_mode = 'r'
93
94 " Editorconfig
95 let g:EditorConfig_exclude_patterns = ['fugitive://.*']
96
97 " latex-box
98 let g:LatexBox_quickfix = 4
99 let g:LatexBox_viewer = "mupdf"
100
101 " clang fix
102 let g:clang_user_options='|| exit0'
103
104 " Color 80th column
105 highlight ColorColumn ctermbg=0
106 let &colorcolumn="80,".join(range(100,999),",")
107
108 " Octave Syntax
109 " augroup filetypedetect
110 "   au! BufRead,BufNewFile *.m,*.oct set filetype=octave
111 " augroup END
112
113 " vimux
114 map C :VimuxPromptCommand<CR>
115
116 " Quiet netrw
117 let g:netrw_silent = 1
118
119 " Set folding
120 set foldmethod=syntax
121 nnoremap <space> za
122 vnoremap <space> zf
123
124 " Better saving behaviour for go
125 let g:go_fmt_experimental = 1
126
127 " Show whitespace
128 set list listchars=trail:•,extends:>,precedes:<,nbsp:␣,eol:↲,tab:→\,
129
130 " Force python3 for rst tables plugin
131 let g:rst_prefer_python_version = 2
132
133 " Set linelength for python
134 let g:black_linelength = 80
135
136 " Python syntax highlighting
137 let g:python_highlight_builtins = 1
138 let g:python_highlight_builtin_objs = 1
139 let g:python_highlight_builtin_types = 1
140 let g:python_highlight_builtin_funcs = 1
141 let g:python_highlight_builtin_kwarg = 1
142 let g:python_highlight_exceptions = 1
143 let g:python_highlight_string_formatting = 1
144 let g:python_highlight_string_format = 1
145 let g:python_highlight_string_templates = 1
146 let g:python_highlight_class_vars = 1
147 let g:python_highlight_operators = 1
148
149 " Python indent
150 autocmd FileType python setlocal foldmethod=indent foldnestmax=2
151
152 " Paren highlighting
153 hi MatchParen cterm=underline ctermbg=none ctermfg=none
154
155 " Rainbow parens
156 let g:rainbow_active = 1
157
158 " Activate tagbar with F8
159 nmap <F8> :TagbarToggle<CR>