]> git.friedersdorff.com Git - max/dotfiles.git/blob - vimrc
Use solarized theme for vim airline
[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 'altercation/vim-colors-solarized'
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 'vim-airline/vim-airline'
23 Plugin 'vim-airline/vim-airline-themes'
24 Plugin 'airblade/vim-gitgutter'
25 Plugin 'tpope/vim-fugitive'
26 Plugin 'kien/ctrlp.vim'
27 Plugin 'editorconfig/editorconfig-vim'
28 Plugin 'LaTeX-Box-Team/LaTeX-Box'
29 Plugin 'ajh17/VimCompletesMe'
30
31 " All of your Plugins must be added before the following line
32 call vundle#end()            " required
33 filetype plugin indent on    " required
34
35 " Random look and feel stuff
36 set t_Co=256
37 syntax on
38 set background=dark
39 colorscheme solarized
40 set expandtab
41 set shiftwidth=2
42 set softtabstop=2
43 set number
44
45 let g:html_indent_inctags = "html,body,head,tbody"
46 let g:indentLine_color_term = 200
47
48 " syntastic
49 set statusline+=%#warningmsg#
50 set statusline+=%{SyntasticStatuslineFlag()}
51 set statusline+=%*
52
53 let g:syntastic_always_populate_loc_list = 1
54 let g:syntastic_auto_loc_list = 2
55 let g:syntastic_check_on_open = 0
56 let g:syntastic_check_on_wq = 0
57 let g:syntastic_javascript_checkers = ['eslint']
58
59 " Syntastic C++11
60 let g:syntastic_cpp_compiler = 'g++'
61 let g:syntastic_cpp_compiler_options = '-std=c++11'
62
63 set laststatus=2
64 " Set this to 1 if powerline fonts are installed.
65 let g:airline_powerline_fonts = 0
66 set timeoutlen=1000
67 let g:airline#extensions#tabline#enabled = 1
68 let g:airline#extensions#tabline#fnamemod = ':t'
69
70 " Setting wildignore
71 set wildignore+=venv
72 set wildignore+=.git,.hg.svn
73
74 " CtrlP
75 let g:ctrlp_working_path_mode = 'r'
76
77 " Editorconfig
78 let g:EditorConfig_exclude_patterns = ['fugitive://.*']
79
80 " latex-box
81 let g:LatexBox_quickfix = 4
82
83 " clang fix
84 let g:clang_user_options='|| exit0'
85
86 " Color 80th column
87 highlight ColorColumn ctermbg=237
88 set colorcolumn=80