]> git.friedersdorff.com Git - max/saltfiles.git/blob - states/vim/files/vimrc
Use pydocstring to generate docstrings
[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 'liskin/vim-fubitive'
25 Plugin 'kien/ctrlp.vim'
26 Plugin 'editorconfig/editorconfig-vim'
27 Plugin 'LaTeX-Box-Team/LaTeX-Box'
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 'lepture/vim-jinja'
38 Plugin 'aklt/plantuml-syntax'
39 Plugin 'vim-python/python-syntax'
40 Plugin 'luochen1990/rainbow'
41 Plugin 'majutsushi/tagbar'
42 Plugin 'heavenshell/vim-pydocstring'
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 set number
60
61 let g:html_indent_inctags = "html,body,head,tbody"
62 let g:indentLine_color_term = 200
63
64 " syntastic
65 set statusline+=%#warningmsg#
66 set statusline+=%{SyntasticStatuslineFlag()}
67 set statusline+=%*
68
69 let g:syntastic_always_populate_loc_list = 1
70 let g:syntastic_auto_loc_list = 2
71 let g:syntastic_check_on_open = 1
72 let g:syntastic_check_on_wq = 1
73 let g:syntastic_javascript_checkers = ['eslint']
74 let g:syntastic_python_python_exec = '/usr/bin/python3'
75 let g:syntastic_python_checkers = ['flake8', 'pylint']
76 let g:syntastic_aggregate_errors = 1
77
78 " Syntastic C++11
79 let g:syntastic_cpp_compiler = 'g++'
80 let g:syntastic_cpp_compiler_options = '-std=c++14'
81
82 set laststatus=2
83 " Set this to 1 if powerline fonts are installed.
84 let g:airline_powerline_fonts = 1
85 set timeoutlen=1000
86 let g:airline#extensions#tabline#enabled = 1
87 let g:airline#extensions#tabline#fnamemod = ':t'
88
89 " Setting wildignore
90 set wildignore+=venv
91 set wildignore+=.git,.hg.svn
92
93 " CtrlP
94 let g:ctrlp_working_path_mode = 'r'
95
96 " Editorconfig
97 let g:EditorConfig_exclude_patterns = ['fugitive://.*']
98
99 " latex-box
100 let g:LatexBox_quickfix = 4
101 let g:LatexBox_viewer = "mupdf"
102
103 " clang fix
104 let g:clang_user_options='|| exit0'
105
106 " Color 80th column
107 highlight ColorColumn ctermbg=0
108 let &colorcolumn="80,".join(range(100,999),",")
109
110 " Octave Syntax
111 " augroup filetypedetect
112 "   au! BufRead,BufNewFile *.m,*.oct set filetype=octave
113 " augroup END
114
115 " vimux
116 map C :VimuxPromptCommand<CR>
117
118 " Quiet netrw
119 let g:netrw_silent = 1
120
121 " Set folding
122 set foldmethod=syntax
123 nnoremap <space> za
124 vnoremap <space> zf
125
126 " Better saving behaviour for go
127 let g:go_fmt_experimental = 1
128
129 " Show whitespace
130 set list listchars=trail:•,extends:>,precedes:<,nbsp:␣,eol:↲,tab:→\,
131
132 " Force python3 for rst tables plugin
133 let g:rst_prefer_python_version = 2
134
135 " Set linelength for python
136 let g:black_linelength = 80
137
138 " Python syntax highlighting
139 let g:python_highlight_builtins = 1
140 let g:python_highlight_builtin_objs = 1
141 let g:python_highlight_builtin_types = 1
142 let g:python_highlight_builtin_funcs = 1
143 let g:python_highlight_builtin_kwarg = 1
144 let g:python_highlight_exceptions = 1
145 let g:python_highlight_string_formatting = 1
146 let g:python_highlight_string_format = 1
147 let g:python_highlight_string_templates = 1
148 let g:python_highlight_class_vars = 1
149 let g:python_highlight_operators = 1
150
151 " Python indent
152 autocmd FileType python setlocal foldmethod=indent foldnestmax=2
153
154 " Paren highlighting
155 hi MatchParen cterm=underline ctermbg=none ctermfg=none
156
157 " Rainbow parens
158 let g:rainbow_active = 1
159
160 " Activate tagbar with F8
161 nmap <F8> :TagbarToggle<CR>
162
163 " Set path to doq
164 let g:pydocstring_doq_path= "/home/max/.local/bin/doq"