mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-12-05 02:36:44 +00:00
Fix viminfo
This commit is contained in:
parent
c1b5cc90af
commit
a4f7e8a8b2
2
.gitignore
vendored
2
.gitignore
vendored
@ -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.*
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user