nvim compatibility

This commit is contained in:
David Tomaschik
2022-01-06 21:59:34 -08:00
parent 5748d014f1
commit d41703820d
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,4 @@
" nvim config
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc

View File

@@ -31,7 +31,9 @@ set number
set ruler set ruler
" Setup viminfo for recording positions, etc. " Setup viminfo for recording positions, etc.
if !has('nvim')
set viminfo='10,\"100,:20,%,n~/.viminfo set viminfo='10,\"100,:20,%,n~/.viminfo
endif
" Jump back when editing a file " Jump back when editing a file
function! ResCur() function! ResCur()
" Don't jump in git commits since they're generated. " Don't jump in git commits since they're generated.