@@ -86,7 +86,13 @@ Plugin 'kchmck/vim-coffee-script'
86
86
Plugin ' octol/vim-cpp-enhanced-highlight'
87
87
" }}}
88
88
" Plugin 'SyntaxAttr.vim'
89
- " Plugin 'Valloric/YouCompleteMe'
89
+ " neocomplete {{{
90
+ " disabled because dependency of vim with lua
91
+ " Plugin 'Shougo/neocomplete.vim'
92
+ " }}}
93
+ " YouCompleteMe{{{
94
+ Plugin ' Valloric/YouCompleteMe'
95
+ " }}}
90
96
" useless {{{
91
97
" Plugin 'tpope/vim-unimpaired.git'
92
98
" }}}
@@ -108,26 +114,6 @@ set t_Co=256
108
114
colo molokai
109
115
let g: molokai_original = 1
110
116
" }}}
111
- " Shougo/neocomplcache{{{
112
- " Plugin 'Shougo/neocomplete.vim'
113
- " set completeopt-=preview
114
- " let g:neocomplcache_enable_at_startup = 1
115
- " let g:neocomplcache_enable_smart_case = 1
116
- " let g:neocomplcache_enable_camel_case_completion = 1
117
- " let g:neocomplcache_enable_underbar_completion = 1
118
- " let g:neocomplcache_caching_limit_file_size = 50000000
119
- " let g:neocomplcache_min_syntax_length = 2
120
- " "<CR>: close popup and save indent.
121
- " inoremap <expr><CR> neocomplcache#smart_close_popup() . "\<CR>"
122
- " "<TAB>: completion. NO USE with snipmate
123
- " inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
124
- " "<C-h>, <BS>: close popup and delete backword char.
125
- " inoremap <expr><C-h> neocomplcache#smart_close_popup()."\<C-h>"
126
- " inoremap <expr><BS> neocomplcache#smart_close_popup()."\<C-h>"
127
- " inoremap <expr><C-Y> neocomplcache#close_popup()
128
- " inoremap <expr><C-e> neocomplcache#cancel_popup()
129
- " let g:neocomplcache_enable_auto_select = 1
130
- " }}}
131
117
" scrooloose/nerdtree{{{
132
118
Plugin ' scrooloose/nerdtree'
133
119
let g: NERDChristmasTree = 1
@@ -139,11 +125,18 @@ noremap <F2> :NERDTreeToggle<cr>
139
125
" }}}
140
126
" scrooloose/syntastic{{{
141
127
Plugin ' scrooloose/syntastic'
128
+ set statusline += % #warningmsg #
129
+ set statusline += % {SyntasticStatuslineFlag ()}
130
+ set statusline += %*
131
+
142
132
let g: syntastic_always_populate_loc_list = 1
133
+ let g: syntastic_auto_loc_list = 1
134
+ let g: syntastic_check_on_open = 1
135
+ let g: syntastic_check_on_wq = 0
143
136
" let g:syntastic_aggregate_errors = 1
144
137
let g: syntastic_mode_map = { ' mode' : ' active' ,
145
138
\ ' active_filetypes' : [],
146
- \ ' passive_filetypes' : [' python' ] }
139
+ \ ' passive_filetypes' : [' python' , ' go ' ] }
147
140
" }}}
148
141
" mattn/emmet-vim{{{
149
142
" not working
@@ -175,14 +168,17 @@ let g:pymode_run_bind = '<leader>r'
175
168
" }}}
176
169
" fatih/vim-go"{{{
177
170
Plugin ' fatih/vim-go'
178
- " let g:go_fmt_command = "goimports"
171
+ let g: go_fmt_command = " goimports"
179
172
let g: go_fmt_autosave = 0
180
173
let g: go_fmt_fail_silently = 0
181
174
let g: syntastic_go_checkers = [' golint' , ' govet' , ' errcheck' ]
182
- let g: syntastic_mode_map = { ' mode' : ' active' , ' passive_filetypes' : [' go' ] }
183
- let g: go_list_type = " quickfix"
175
+ " let g:go_list_type = "quickfix"
184
176
" }}}
185
- Plugin ' nsf/gocode' , {' rtp' : ' vim/' }
177
+ " tag bar {{{
178
+ Plugin ' majutsushi/tagbar'
179
+ nmap <F8> :TagbarToggle<CR>
180
+ " }}}
181
+ " Plugin 'nsf/gocode', {'rtp': 'vim/'}
186
182
" }}}
187
183
" End Vundle {{{
188
184
filetype plugin indent on " required!
@@ -200,17 +196,6 @@ endif
200
196
" Custom Maps {{{
201
197
noremap <leader> q <C-W> c
202
198
noremap <leader> w :w!<cr>
203
- noremap <F4> <C-W> _
204
- inoremap <F4> <C-W> _
205
- noremap <F5> :make!<cr>
206
- noremap <leader> s :sh<cr>
207
- noremap \| :ls<cr>
208
- " Fast editing of the .vimrc
209
- if s: OS == ' windows'
210
- map <leader> e :e! $VIM/_vimrc<cr>
211
- else
212
- map <leader> e :e! ~/.vimrc<cr>
213
- endif
214
199
vnoremap <silent> * :call VisualSearch('f')<CR>
215
200
vnoremap <silent> # :call VisualSearch('b')<CR>
216
201
vnoremap <silent> gv :call VisualSearch('gv')<CR>
@@ -526,11 +511,12 @@ au FileType go nmap <leader>b <Plug>(go-build)
526
511
au FileType go nmap <Leader> s <Plug> (go-implements)
527
512
au FileType go nmap <leader> ] <Plug> (go-def-vertical)
528
513
au FileType go nmap <F12> :GoFmt <CR>
514
+ au FileType go nmap <F10> :GoMetaLinter <CR>
529
515
530
516
set foldmethod = syntax " fold based on indent
531
517
set foldnestmax = 10 " deepest fold is 10 levels
532
518
set nofoldenable " dont fold by default
533
- set foldlevel = 1 " this is just what i use
519
+ set foldlevel = 3 " this is just what i use
534
520
autocmd BufWinLeave *.* mkview
535
521
autocmd BufWinEnter *.* silent loadview
536
522
0 commit comments