Fix viminfo

This commit is contained in:
ViViDboarder 2015-11-06 22:52:08 -08:00
parent c1b5cc90af
commit a4f7e8a8b2
2 changed files with 10 additions and 4 deletions

2
.gitignore vendored
View File

@ -10,4 +10,4 @@ vim/rc/*.local.rc.vim
vim/rc/plugins/*.local.rc.vim
vim/tmp/*.swo
vim/tmp/*.swp
vim/tmp/viminfo
vim/tmp/viminfo.*

View File

@ -16,9 +16,15 @@ set mouse=a
" Set backup dirs
set backup
set backupdir=~/.vim/backup
set directory=~/.vim/tmp
set viminfo='100,n~/.vim/tmp/viminfo
if has('nvim')
set backupdir=~/.config/nvim/backup
set directory=~/.config/nvim/tmp
set viminfo='100,n~/.config/nvim/tmp/viminfo.nvim
else
set backupdir=~/.vim/backup
set directory=~/.vim/tmp
set viminfo='100,n~/.vim/tmp/viminfo.vim
endif
" Filetype extension
au BufRead,BufNewFile *.md set syntax=markdown