summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjohannst <johannes.stoelp@gmail.com>2020-02-12 18:50:39 +0100
committerjohannst <johannes.stoelp@gmail.com>2020-02-12 18:50:39 +0100
commit3a59a2c1ad131db664647d40481558f7b24eb9db (patch)
tree4423034b9a9fffaef730bc7f5139ffc1833a21b1
parentd7bc67f8cb41f00ff3ec03e5fd8f6afe5f2b59ca (diff)
downloaddotfiles-3a59a2c1ad131db664647d40481558f7b24eb9db.tar.gz
dotfiles-3a59a2c1ad131db664647d40481558f7b24eb9db.zip
vimrc: added undodir
-rw-r--r--vimrc9
1 files changed, 9 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index db3682c..cf9cddd 100644
--- a/vimrc
+++ b/vimrc
@@ -197,6 +197,15 @@ nnoremap <leader>dw :windo diffthis<CR>
nnoremap <leader>dn :diffoff!<CR>
"}}}
+"{{{ undodir
+
+if !isdirectory($HOME . "/.vimundo")
+ call mkdir($HOME . "/.vimundo", "", 0700)
+endif
+set undodir=$HOME/.vimundo
+set undofile
+
+"}}}
"{{{ Basic Movement
augroup aug:HelpPageKeyMaps