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