-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
73 lines (54 loc) · 1.77 KB
/
vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
set ts=4
set shiftwidth=4
set softtabstop=4
set expandtab
set bg=dark
set shell=/bin/bash
execute pathogen#infect()
filetype on " enables filetype detection
filetype plugin on " enables filetype specific plugins
"au BufWinEnter * let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
autocmd FileType python highlight Excess ctermbg=LightBlue
autocmd FileType python match Excess /\%81v.*/
set wildmenu
set list listchars=tab:»·,trail:·
autocmd filetype html,xml,go set listchars-=trail:>.
set spelllang=en_us
set number
au FileType recipe source ~/.vim/ftplugin/python.vim
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
set statusline+=%f
set statusline+=%=
set statusline+=%-14.(%l,%c%V%)\ %P
" configure undo file
set undodir=~/.vim/undo
set undofile
set undolevels=1000 "maximum number of changes that can be undone
set undoreload=10000 "maximum number lines to save for undo on a buffer reload
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 1
let g:syntastic_python_checkers = ['pyflakes']
set background=dark
" solarized options
"let g:solarized_visibility = "high"
"let g:solarized_contrast = "high"
"let g:solarized_termcolors = 256
colorscheme solarized
" remap snips expansion since tab is used by code completion
let g:UltiSnipsExpandTrigger = '<C-j>'
" format with goimports instead of gofmt
let g:go_fmt_command = "goimports"
let g:go_fmt_autosave = 1
" enable nocomplete
let g:neocomplete#enable_at_startup = 1
" always lint on save
let g:go_metalinter_autosave = 1
let g:go_highlight_extra_types = 1
let g:go_highlight_functions = 0
let g:go_highlight_methods = 1
let g:go_highlight_types = 0
command Sync syntax sync fromstart