18 lines
450 B
VimL
18 lines
450 B
VimL
" Put plugins and dictionaries in this dir (also on Windows)
|
|
let vimDir = '$HOME/.cache/vim'
|
|
let &runtimepath.=','.vimDir
|
|
|
|
" theme
|
|
source $HOME/.cache/vim/colorscheme.vim
|
|
|
|
" 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
|
|
|