]> git.friedersdorff.com Git - max/dotfiles.git/blob - .vimrc
bdb8feb5eb902f5ad5521231f423ca2622fdfb24
[max/dotfiles.git] / .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
37 " All of your Plugins must be added before the following line
38 call vundle#end()            " required
39 filetype plugin indent on    " required
40
41 " Swapfiles
42 set backupdir=$HOME/.vim/backup//
43
44 " Random look and feel stuff
45 syntax on
46 set background=dark
47 colorscheme molokai
48 set expandtab
49 set shiftwidth=2
50 set softtabstop=2
51 set relativenumber
52
53 let g:html_indent_inctags = "html,body,head,tbody"
54 let g:indentLine_color_term = 200
55
56 " syntastic
57 set statusline+=%#warningmsg#
58 set statusline+=%{SyntasticStatuslineFlag()}
59 set statusline+=%*
60
61 let g:syntastic_always_populate_loc_list = 1
62 let g:syntastic_auto_loc_list = 2
63 let g:syntastic_check_on_open = 1
64 let g:syntastic_check_on_wq = 1
65 let g:syntastic_javascript_checkers = ['eslint']
66 let g:syntastic_python_python_exec = '/usr/bin/python3'
67 let g:syntastic_python_checkers = ['flake8']
68 let g:syntastic_aggregate_errors = 1
69
70 " Syntastic C++11
71 let g:syntastic_cpp_compiler = 'g++'
72 let g:syntastic_cpp_compiler_options = '-std=c++11'
73
74 set laststatus=2
75 " Set this to 1 if powerline fonts are installed.
76 let g:airline_powerline_fonts = 0
77 set timeoutlen=1000
78 let g:airline#extensions#tabline#enabled = 1
79 let g:airline#extensions#tabline#fnamemod = ':t'
80
81 " Setting wildignore
82 set wildignore+=venv
83 set wildignore+=.git,.hg.svn
84
85 " CtrlP
86 let g:ctrlp_working_path_mode = 'r'
87
88 " Editorconfig
89 let g:EditorConfig_exclude_patterns = ['fugitive://.*']
90
91 " latex-box
92 let g:LatexBox_quickfix = 4
93 let g:LatexBox_viewer = "mupdf"
94
95 " clang fix
96 let g:clang_user_options='|| exit0'
97
98 " Color 80th column
99 highlight ColorColumn ctermbg=0
100 set colorcolumn=80
101
102 " Octave Syntax
103 " augroup filetypedetect
104 "   au! BufRead,BufNewFile *.m,*.oct set filetype=octave
105 " augroup END 
106
107 " vimux
108 map C :VimuxPromptCommand<CR>
109
110 " Quiet netrw
111 let g:netrw_silent = 1