Nvim :help
pages, generated
from source
using the tree-sitter-vimdoc parser.
nvim-intro
:Tutor<Enter>
Nvim is emphatically a fork of Vim, not a clone: compatibility with Vim
(especially editor and Vimscript features) is maintained where possible. See
vim-differences for the complete reference of differences from Vim.
:exe 'edit '.stdpath('config').'/init.vim'
:write ++p
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.
if !has('nvim')
set ttymouse=xterm2
endif
And for Nvim-specific configuration, you can do this:
if has('nvim')
tnoremap <Esc> <C-\><C-n>
endif
For a more granular approach use exists():
if exists(':tnoremap')
tnoremap <Esc> <C-\><C-n>
endif
Now you should be able to explore Nvim more comfortably. Check nvim-features
for more information.
portable-config
source ~/.config/nvim/init.vim