ここのメソッドはにシンボリックリンク~/.config/nvimし~/.vim、confと互換性を保とうとしvimます。
# nvim conf dir: ~/.config/nvim
# vim conf dir: ~/.vim
# link the 1st as the 2nd with relative links
# Prepare a vimrc file in ~/.config/nvim folder
ln -sf ./init.vim ~/.config/nvim/vimrc
# Link the whole ~/.config/nvim folder as ~/.vim foler
ln -sf ./.config/nvim ~/.vim
このセットアップ後~/.config/nvim/init.vim、confとして使用される実際のファイルです。~/.vim/vimrcそれへの単なるリンクです。
次に、とを変更して、vim再利用nvimのプラグインマネージャー、プラグインを作成する必要がruntimepathありpackpathます。実際、プラグインパスは自動的に再利用され、次の修正によりプラグインマネージャーが再利用されます。
let g:is_nvim = has('nvim')
let g:is_vim8 = v:version >= 800 ? 1 : 0
" Reuse nvim's runtimepath and packpath in vim
if !g:is_nvim && g:is_vim8
  set runtimepath-=~/.vim
    \ runtimepath^=~/.local/share/nvim/site runtimepath^=~/.vim 
    \ runtimepath-=~/.vim/after
    \ runtimepath+=~/.local/share/nvim/site/after runtimepath+=~/.vim/after
  let &packpath = &runtimepath
endif
ソース:vimとnvimの間でconfを共有
               
              
if has('nvim')nvimコマンドだけのために