From 0dc49f0a871d6c921551b14951b57677adbc1f7d Mon Sep 17 00:00:00 2001 From: valeth Date: Mon, 16 Nov 2015 16:15:17 +0100 Subject: [PATCH] update vim-plug --- autoload/plug.vim | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/autoload/plug.vim b/autoload/plug.vim index b63d777..80f9629 100644 --- a/autoload/plug.vim +++ b/autoload/plug.vim @@ -24,11 +24,14 @@ " " Using git URL " Plug 'https://github.com/junegunn/vim-github-dashboard.git' " +" " Using a non-master branch +" Plug 'rdnetto/YCM-Generator', { 'branch': 'stable' } + " " Plugin options " Plug 'nsf/gocode', { 'tag': 'v.20150303', 'rtp': 'vim' } " " " 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) " Plug '~/my-prototype-plugin' @@ -172,11 +175,14 @@ function! plug#end() call s:assoc(lod.map, cmd, name) endif call add(s:triggers[name].map, cmd) - elseif cmd =~ '^[A-Z]' + elseif cmd =~# '^[A-Z]' if exists(':'.cmd) != 2 call s:assoc(lod.cmd, cmd, name) endif call add(s:triggers[name].cmd, cmd) + else + call s:err('Invalid `on` option: '.cmd. + \ '. Should start with an uppercase letter or ``.') endif endfor endif @@ -294,7 +300,7 @@ endif function! s:err(msg) echohl ErrorMsg - echom a:msg + echom '[vim-plug] '.a:msg echohl None return 0 endfunction