]> git.friedersdorff.com Git - max/saltfiles.git/blob - states/vim/files/vimrc
b8cf54dede84fbca44d8208a6d2df8d22074df5a
[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 'Raimondi/delimitMate'
18 Plugin 'scrooloose/syntastic'
19 Plugin 'ternjs/tern_for_vim'
20 Plugin 'docunext/closetag.vim'
21 Plugin 'vim-airline/vim-airline'
22 Plugin 'vim-airline/vim-airline-themes'
23 Plugin 'airblade/vim-gitgutter'
24 Plugin 'tpope/vim-fugitive'
25 Plugin 'kien/ctrlp.vim'
26 Plugin 'editorconfig/editorconfig-vim'
27 Plugin 'LaTeX-Box-Team/LaTeX-Box'
28 Plugin 'ajh17/VimCompletesMe'
29 Plugin 'hynek/vim-python-pep8-indent'
30 Plugin 'vim-scripts/octave.vim--'
31 Plugin 'vim-scripts/MatlabFilesEdition'
32 Plugin 'flazz/vim-colorschemes'
33 Plugin 'benmills/vimux'
34 Plugin 'tmhedberg/SimpylFold'
35 Plugin 'saltstack/salt-vim'
36 Plugin 'fatih/vim-go'
37 Plugin 'gu-fan/riv.vim'
38 Plugin 'nvie/vim-rst-tables'
39 Plugin 'lepture/vim-jinja'
40 Plugin 'aklt/plantuml-syntax'
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
58 let g:html_indent_inctags = "html,body,head,tbody"
59 let g:indentLine_color_term = 200
60
61 " syntastic
62 set statusline+=%#warningmsg#
63 set statusline+=%{SyntasticStatuslineFlag()}
64 set statusline+=%*
65
66 let g:syntastic_always_populate_loc_list = 1
67 let g:syntastic_auto_loc_list = 2
68 let g:syntastic_check_on_open = 1
69 let g:syntastic_check_on_wq = 1
70 let g:syntastic_javascript_checkers = ['eslint']
71 let g:syntastic_python_python_exec = '/usr/bin/python3'
72 let g:syntastic_python_checkers = ['flake8']
73 let g:syntastic_aggregate_errors = 1
74
75 " Syntastic C++11
76 let g:syntastic_cpp_compiler = 'g++'
77 let g:syntastic_cpp_compiler_options = '-std=c++14'
78
79 set laststatus=2
80 " Set this to 1 if powerline fonts are installed.
81 let g:airline_powerline_fonts = 1
82 set timeoutlen=1000
83 let g:airline#extensions#tabline#enabled = 1
84 let g:airline#extensions#tabline#fnamemod = ':t'
85
86 " Setting wildignore
87 set wildignore+=venv
88 set wildignore+=.git,.hg.svn
89
90 " CtrlP
91 let g:ctrlp_working_path_mode = 'r'
92
93 " Editorconfig
94 let g:EditorConfig_exclude_patterns = ['fugitive://.*']
95
96 " latex-box
97 let g:LatexBox_quickfix = 4
98 let g:LatexBox_viewer = "mupdf"
99
100 " clang fix
101 let g:clang_user_options='|| exit0'
102
103 " Color 80th column
104 highlight ColorColumn ctermbg=0
105 set colorcolumn=80
106
107 " Octave Syntax
108 " augroup filetypedetect
109 "   au! BufRead,BufNewFile *.m,*.oct set filetype=octave
110 " augroup END
111
112 " vimux
113 map C :VimuxPromptCommand<CR>
114
115 " Quiet netrw
116 let g:netrw_silent = 1
117
118 " Set folding
119 set foldmethod=syntax
120
121 " Better saving behaviour for go
122 let g:go_fmt_experimental = 1
123
124 " Show whitespace
125 set list listchars=trail:•,extends:>,precedes:<,nbsp:␣,eol:↲,tab:→\,
126
127 " Force python3 for rst tables plugin
128 let g:rst_prefer_python_version = 2