diff options
| author | Sylvain Herlédan <sylvain.herledan@hrafnagud.info> | 2017-11-22 09:58:30 +0100 |
|---|---|---|
| committer | Sylvain Herlédan <sylvain.herledan@hrafnagud.info> | 2017-11-22 09:58:30 +0100 |
| commit | 3036e8db18b123cc2d023bd9e3f0b37d8937f77c (patch) | |
| tree | 043baed55b450e5a944897e079caba0e35521326 /vimrc | |
| parent | 844b3e6fc16db82dfd9c85e3a06b6e3f9dc7eaf5 (diff) | |
| download | dotfiles-3036e8db18b123cc2d023bd9e3f0b37d8937f77c.tar.gz dotfiles-3036e8db18b123cc2d023bd9e3f0b37d8937f77c.tar.bz2 dotfiles-3036e8db18b123cc2d023bd9e3f0b37d8937f77c.zip | |
Add Undotree plugin for vim.
Diffstat (limited to 'vimrc')
| -rw-r--r-- | vimrc | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 <F3> :VimuxPromptCommand<CR> nmap <F4> :VimuxRunLastCommand<CR> " - toggle tags browser with F8 nmap <F8> :TagbarToggle<CR> +" - toggle undo history with F5 +nmap <F5> :UndotreeToggle<CR> " Highlight extra whitespaces highlight ExtraWhitespace ctermbg=red |
