diff --git a/vimrc b/vimrc index 815ff14..902bb36 100644 --- a/vimrc +++ b/vimrc @@ -199,6 +199,20 @@ filetype on filetype plugin on filetype indent on +" Put plugins and dictionaries in this dir (also on Windows) +let vimDir = '$HOME/.vim' +let &runtimepath.=','.vimDir + +" Keep undo history across sessions by storing it in a file +if has('persistent_undo') + let myUndoDir = expand(vimDir . '/undodir') + " Create dirs + call system('mkdir ' . vimDir) + call system('mkdir ' . myUndoDir) + let &undodir = myUndoDir + set undofile +endif + map map map