sudo add-apt-repository ppa:jonathonf/vim
sudo add-apt-repository ppa:neovim-ppa/unstable
sudo apt-get update
sudo apt-get install neovim vim
Transitioning from Vim nvim-from-vim
$ mkdir -p /.config/nvim/.vim runtimepath+=~/.vim/after
Next, create and save a ~/.config/nvim/init.vim file with the following contents:
init.vim
set runtimepath^=
let &packpath = &runtimepath
source ~/.vim/vimrc
1. To start the transition, create your |init.vim| (user config) file:
:call mkdir(stdpath('config'), 'p')
:exe 'edit '.stdpath('config').'/init.vim'
2. Add these contents to the file:
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath
source ~/.vimrc
3. Restart Nvim, your existing Vim config will be loaded.
文档更新时间: 2021-10-21 12:32 作者:suglow