diff --git a/autoload/vundle/installer.vim b/autoload/vundle/installer.vim index 472271a3..6a4be506 100644 --- a/autoload/vundle/installer.vim +++ b/autoload/vundle/installer.vim @@ -407,6 +407,7 @@ func! s:make_sync_command(bang, bundle) abort let cmd_parts = [ \ 'cd '.vundle#installer#shellesc(a:bundle.path()), + \ 'git tag -f vundle-'.strftime('%Y%m%d-%H%M'), \ 'git pull', \ 'git submodule update --init --recursive', \ ] diff --git a/doc/vundle.txt b/doc/vundle.txt index 81a5f66f..82f2582c 100644 --- a/doc/vundle.txt +++ b/doc/vundle.txt @@ -277,6 +277,16 @@ To update specific plugins, write their names separated by space: or > :PluginUpdate vim-surround vim-fugitive +The command `git tag` will be used to tag the commit that was used before any +update (i.e. before `git pull` is run). The tag is named `update-` +(today's date and time). If a plugin breaks after update, go to its +directory, check for the latest tag using `git tag` and run + + `git checkout vundle- && \` + `git submodule update --init --recursive` + +Then mark it as 'pinned' in `.vimrc`. + 3.5 SEARCHING PLUGINS ~ *vundle-plugins-search* *:PluginSearch* >