1
0

update vim-plug

This commit is contained in:
valeth 2015-11-16 16:15:17 +01:00
parent 90f8dd4901
commit 0dc49f0a87

View File

@ -24,11 +24,14 @@
" " Using git URL " " Using git URL
" Plug 'https://github.com/junegunn/vim-github-dashboard.git' " Plug 'https://github.com/junegunn/vim-github-dashboard.git'
" "
" " Using a non-master branch
" Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' }
" " Plugin options " " Plugin options
" Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' } " Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' }
" "
" " Plugin outside ~/.vim/plugged with post-update hook " " Plugin outside ~/.vim/plugged with post-update hook
" Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': 'yes \| ./install' } " Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
" "
" " Unmanaged plugin (manually installed and updated) " " Unmanaged plugin (manually installed and updated)
" Plug '~/my-prototype-plugin' " Plug '~/my-prototype-plugin'
@ -172,11 +175,14 @@ function! plug#end()
call s:assoc(lod.map, cmd, name) call s:assoc(lod.map, cmd, name)
endif endif
call add(s:triggers[name].map, cmd) call add(s:triggers[name].map, cmd)
elseif cmd =~ '^[A-Z]' elseif cmd =~# '^[A-Z]'
if exists(':'.cmd) != 2 if exists(':'.cmd) != 2
call s:assoc(lod.cmd, cmd, name) call s:assoc(lod.cmd, cmd, name)
endif endif
call add(s:triggers[name].cmd, cmd) call add(s:triggers[name].cmd, cmd)
else
call s:err('Invalid `on` option: '.cmd.
\ '. Should start with an uppercase letter or `<Plug>`.')
endif endif
endfor endfor
endif endif
@ -294,7 +300,7 @@ endif
function! s:err(msg) function! s:err(msg)
echohl ErrorMsg echohl ErrorMsg
echom a:msg echom '[vim-plug] '.a:msg
echohl None echohl None
return 0 return 0
endfunction endfunction