mirror of
				https://github.com/amix/vimrc
				synced 2025-10-31 23:13:35 +08:00 
			
		
		
		
	Updated vim plugins
This commit is contained in:
		| @ -17,7 +17,7 @@ command! -range=% GoReferrers call go#guru#Referrers(<count>) | ||||
| command! -range=0 GoSameIds call go#guru#SameIds(1) | ||||
| command! -range=0 GoSameIdsClear call go#guru#ClearSameIds() | ||||
| command! -range=0 GoSameIdsToggle call go#guru#ToggleSameIds() | ||||
| command! -range=0 GoSameIdsAutoToggle call go#guru#AutoToogleSameIds() | ||||
| command! -range=0 GoSameIdsAutoToggle call go#guru#AutoToggleSameIds() | ||||
|  | ||||
| " -- tags | ||||
| command! -nargs=* -range GoAddTags call go#tags#Add(<line1>, <line2>, <count>, <f-args>) | ||||
| @ -77,11 +77,11 @@ command! -nargs=1 -bang -complete=customlist,go#package#Complete GoImport call g | ||||
| command! -nargs=* -bang -complete=customlist,go#package#Complete GoImportAs call go#import#SwitchImport(1, <f-args>, '<bang>') | ||||
|  | ||||
| " -- linters | ||||
| command! -nargs=* GoMetaLinter call go#lint#Gometa(0, <f-args>) | ||||
| command! -nargs=* -bang GoMetaLinter call go#lint#Gometa(<bang>0, 0, <f-args>) | ||||
| command! -nargs=0 GoMetaLinterAutoSaveToggle call go#lint#ToggleMetaLinterAutoSave() | ||||
| command! -nargs=* GoLint call go#lint#Golint(<f-args>) | ||||
| command! -nargs=* -bang GoLint call go#lint#Golint(<bang>0, <f-args>) | ||||
| command! -nargs=* -bang GoVet call go#lint#Vet(<bang>0, <f-args>) | ||||
| command! -nargs=* -complete=customlist,go#package#Complete GoErrCheck call go#lint#Errcheck(<f-args>) | ||||
| command! -nargs=* -bang -complete=customlist,go#package#Complete GoErrCheck call go#lint#Errcheck(<bang>0, <f-args>) | ||||
|  | ||||
| " -- alternate | ||||
| command! -bang GoAlternate call go#alternate#Switch(<bang>0, '') | ||||
|  | ||||
| @ -68,8 +68,8 @@ nnoremap <silent> <Plug>(go-doc-vertical) :<C-u>call go#doc#Open("vnew", "vsplit | ||||
| nnoremap <silent> <Plug>(go-doc-split) :<C-u>call go#doc#Open("new", "split")<CR> | ||||
| nnoremap <silent> <Plug>(go-doc-browser) :<C-u>call go#doc#OpenBrowser()<CR> | ||||
|  | ||||
| nnoremap <silent> <Plug>(go-metalinter) :<C-u>call go#lint#Gometa(0)<CR> | ||||
| nnoremap <silent> <Plug>(go-lint) :<C-u>call go#lint#Golint()<CR> | ||||
| nnoremap <silent> <Plug>(go-metalinter) :<C-u>call go#lint#Gometa(!g:go_jump_to_error, 0)<CR> | ||||
| nnoremap <silent> <Plug>(go-lint) :<C-u>call go#lint#Golint(!g:go_jump_to_error)<CR> | ||||
| nnoremap <silent> <Plug>(go-vet) :<C-u>call go#lint#Vet(!g:go_jump_to_error)<CR> | ||||
|  | ||||
| nnoremap <silent> <Plug>(go-alternate-edit) :<C-u>call go#alternate#Switch(0, "edit")<CR> | ||||
|  | ||||
| @ -1,3 +1,7 @@ | ||||
| " don't spam the user when Vim is started in Vi compatibility mode | ||||
| let s:cpo_save = &cpo | ||||
| set cpo&vim | ||||
|  | ||||
| if exists("g:go_loaded_gosnippets") | ||||
|   finish | ||||
| endif | ||||
| @ -64,4 +68,8 @@ elseif s:engine is? "minisnip" | ||||
|   call s:GoMinisnip() | ||||
| endif | ||||
|  | ||||
| " restore Vi compatibility settings | ||||
| let &cpo = s:cpo_save | ||||
| unlet s:cpo_save | ||||
|  | ||||
| " vim: sw=2 ts=2 et | ||||
|  | ||||
| @ -9,6 +9,10 @@ elseif globpath(&rtp, 'plugin/tagbar.vim') == "" | ||||
|   finish | ||||
| endif | ||||
|  | ||||
| " don't spam the user when Vim is started in Vi compatibility mode | ||||
| let s:cpo_save = &cpo | ||||
| set cpo&vim | ||||
|  | ||||
| if !exists("g:go_gotags_bin") | ||||
|   let g:go_gotags_bin = "gotags" | ||||
| endif | ||||
| @ -54,4 +58,8 @@ endfunction | ||||
|  | ||||
| call s:SetTagbar() | ||||
|  | ||||
| " restore Vi compatibility settings | ||||
| let &cpo = s:cpo_save | ||||
| unlet s:cpo_save | ||||
|  | ||||
| " vim: sw=2 ts=2 et | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Amir Salihefendic
					Amir Salihefendic