Quellcode durchsuchen

add persistent undo to vim

For vim 7.3 and up. Should find a way to detect versions
Weiyi Lou vor 13 Jahren
Ursprung
Commit
51a11ce1f2
2 geänderte Dateien mit 5 neuen und 0 gelöschten Zeilen
  1. 1 0
      RUNME
  2. 4 0
      vim/vimrc

+ 1 - 0
RUNME

@@ -6,6 +6,7 @@
 # Vim
 # Vim
 ln -s dotFiles/vim/ ~/.vim
 ln -s dotFiles/vim/ ~/.vim
 ln -s dotFiles/vim/vimrc ~/.vimrc
 ln -s dotFiles/vim/vimrc ~/.vimrc
+mkdir ~/.vimundo
 
 
 # Zsh
 # Zsh
 ln -s dotFiles/zsh/zshrc ~/.zshrc
 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 splitright "New splits appear right of current window
 set ttyfast "Smooth movement
 set ttyfast "Smooth movement
 
 
+" Persistent undo
+set undofile
+set undodir=~/.vimundo
+
 "if version >= 700
 "if version >= 700
 "    set mouse=a "mouse support for 7.x, but don't use this if we use screen
 "    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
 "    because it has no effect, and then just becomes annoying for copy/paste