Просмотр исходного кода

add persistent undo to vim

For vim 7.3 and up. Should find a way to detect versions
Weiyi Lou 13 лет назад
Родитель
Сommit
51a11ce1f2
2 измененных файлов с 5 добавлено и 0 удалено
  1. 1 0
      RUNME
  2. 4 0
      vim/vimrc

+ 1 - 0
RUNME

@@ -6,6 +6,7 @@
 # Vim
 ln -s dotFiles/vim/ ~/.vim
 ln -s dotFiles/vim/vimrc ~/.vimrc
+mkdir ~/.vimundo
 
 # Zsh
 ln -s dotFiles/zsh/zshrc ~/.zshrc

+ 4 - 0
vim/vimrc

@@ -26,6 +26,10 @@ set splitbelow "New splits appear below current window instead of above
 set splitright "New splits appear right of current window
 set ttyfast "Smooth movement
 
+" Persistent undo
+set undofile
+set undodir=~/.vimundo
+
 "if version >= 700
 "    set mouse=a "mouse support for 7.x, but don't use this if we use screen
 "    because it has no effect, and then just becomes annoying for copy/paste