]> git.friedersdorff.com Git - max/dotfiles.git/blob - vimrc
Draw vertical line at 80 cols in vim
[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 'zanloy/vim-colors-sunburst'
15 Plugin 'Lokaltog/vim-distinguished'
16 Plugin 'pangloss/vim-javascript'
17 Plugin 'Yggdroot/indentLine'
18 Plugin 'Raimondi/delimitMate'
19 Plugin 'scrooloose/syntastic'
20 Plugin 'ternjs/tern_for_vim'
21 Plugin 'docunext/closetag.vim'
22 Plugin 'bling/vim-airline'
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
30 " All of your Plugins must be added before the following line
31 call vundle#end()            " required
32 filetype plugin indent on    " required
33
34 " Random look and feel stuff
35 set t_Co=256
36 syntax on
37 set background=dark
38 colorscheme sunburst 
39 set expandtab
40 set shiftwidth=2
41 set softtabstop=2
42 set number
43
44 let g:html_indent_inctags = "html,body,head,tbody"
45 let g:indentLine_color_term = 200
46
47 " syntastic
48 set statusline+=%#warningmsg#
49 set statusline+=%{SyntasticStatuslineFlag()}
50 set statusline+=%*
51
52 let g:syntastic_always_populate_loc_list = 1
53 let g:syntastic_auto_loc_list = 2
54 let g:syntastic_check_on_open = 0
55 let g:syntastic_check_on_wq = 0
56 let g:syntastic_javascript_checkers = ['eslint']
57
58 " Syntastic C++11
59 let g:syntastic_cpp_compiler = 'g++'
60 let g:syntastic_cpp_compiler_options = '-std=c++11'
61
62 set laststatus=2
63 " Set this to 1 if powerline fonts are installed.
64 let g:airline_powerline_fonts = 0
65 set timeoutlen=1000
66 let g:airline#extensions#tabline#enabled = 1
67 let g:airline#extensions#tabline#fnamemod = ':t'
68
69 " Setting wildignore
70 set wildignore+=venv
71 set wildignore+=.git,.hg.svn
72
73 " CtrlP
74 let g:ctrlp_working_path_mode = 'r'
75
76 " Editorconfig
77 let g:EditorConfig_exclude_patterns = ['fugitive://.*']
78
79 " latex-box
80 let g:LatexBox_quickfix = 4
81
82 " clang fix
83 let g:clang_user_options='|| exit0'
84
85 " Color 80th column
86 highlight ColorColumn ctermbg=237
87 set colorcolumn=80