2020-05-25 09:05:56 +02:00
|
|
|
" Put plugins and dictionaries in this dir (also on Windows)
|
|
|
|
let vimDir = '$HOME/.cache/vim'
|
|
|
|
let &runtimepath.=','.vimDir
|
|
|
|
|
2020-10-18 13:01:24 +02:00
|
|
|
" let base16colorspace=256
|
|
|
|
" set termguicolors
|
|
|
|
" source $HOME/.config/vim/colorscheme.vim
|
|
|
|
" Some terminals requires a combination of the previous
|
|
|
|
" (the last one being setting the colorscheme to the exact theme in use),
|
|
|
|
" but it's a mess so I let you to figure out which one needs which
|
|
|
|
|
|
|
|
colorscheme base16-default-dark
|
2020-05-25 09:05:56 +02:00
|
|
|
|
|
|
|
" 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
|
|
|
|
|