From 3036e8db18b123cc2d023bd9e3f0b37d8937f77c Mon Sep 17 00:00:00 2001 From: Sylvain Herlédan Date: Wed, 22 Nov 2017 09:58:30 +0100 Subject: Add Undotree plugin for vim. --- vimrc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'vimrc') diff --git a/vimrc b/vimrc index e6e3876..82250f0 100644 --- a/vimrc +++ b/vimrc @@ -22,6 +22,7 @@ call dein#add('scrooloose/nerdtree', \{'on_cmd': 'NERDTreeToggle'}) call dein#add('justmao945/vim-clang', \{'on_ft': ['c', 'cpp']}) +call dein#add('mbbill/undotree') call dein#end() filetype plugin indent on @@ -39,6 +40,10 @@ let g_clang_cpp_options = '-std=c++11 -stdlib=libc++' let g:VimuxHeight = "10" let g:VimuxOrientation = "v" let g:VimuxPromptString = ":!" +if has("persistent_undo") + set undodir=~/.cache/vim/undo + set undofile +endif " Encoding set encoding=utf-8 @@ -77,6 +82,8 @@ nmap :VimuxPromptCommand nmap :VimuxRunLastCommand " - toggle tags browser with F8 nmap :TagbarToggle +" - toggle undo history with F5 +nmap :UndotreeToggle " Highlight extra whitespaces highlight ExtraWhitespace ctermbg=red -- cgit v1.2.3-70-g09d2