2017-03-21 17:13:51 -07:00
|
|
|
*nvim.txt* Nvim
|
2015-07-21 05:06:17 -07:00
|
|
|
|
|
|
|
|
2016-06-15 18:33:47 -07:00
|
|
|
NVIM REFERENCE MANUAL
|
2015-07-21 05:06:17 -07:00
|
|
|
|
|
|
|
|
2016-06-15 18:33:47 -07:00
|
|
|
Nvim *nvim* *nvim-intro*
|
2015-07-21 05:06:17 -07:00
|
|
|
|
2016-06-15 18:33:47 -07:00
|
|
|
If you are new to Vim (and Nvim) see |help.txt| or type ":Tutor".
|
|
|
|
If you already use Vim (but not Nvim) see |nvim-from-vim| for a quickstart.
|
2015-07-21 05:06:17 -07:00
|
|
|
|
2016-06-15 18:33:47 -07:00
|
|
|
Nvim is emphatically a fork of Vim, not a clone: compatibility with Vim is
|
|
|
|
maintained where possible. See |vim_diff.txt| for the complete reference of
|
|
|
|
differences from Vim.
|
|
|
|
|
|
|
|
==============================================================================
|
|
|
|
Transitioning from Vim *nvim-from-vim*
|
|
|
|
|
|
|
|
To start the transition, link your previous configuration so Nvim can use it:
|
|
|
|
>
|
2016-07-28 21:41:21 -07:00
|
|
|
mkdir ~/.config
|
|
|
|
ln -s ~/.vim ~/.config/nvim
|
|
|
|
ln -s ~/.vimrc ~/.config/nvim/init.vim
|
2016-06-15 18:33:47 -07:00
|
|
|
<
|
2016-07-28 21:41:21 -07:00
|
|
|
Note: If your system sets `$XDG_CONFIG_HOME`, use that instead of `~/.config`
|
|
|
|
in the code above. Nvim follows the XDG |base-directories| convention.
|
|
|
|
|
2016-06-15 18:33:47 -07:00
|
|
|
See |provider-python| and |provider-clipboard| for additional software you
|
|
|
|
might need to use some features.
|
|
|
|
|
|
|
|
Your Vim configuration might not be entirely compatible with Nvim. For a
|
|
|
|
full list of differences between Vim and Nvim see |vim-differences|.
|
|
|
|
|
|
|
|
The |'ttymouse'| option, for example, was removed from Nvim (mouse support
|
|
|
|
should work without it). If you use the same |vimrc| for Vim and Nvim,
|
|
|
|
consider guarding |'ttymouse'| in your configuration like so:
|
|
|
|
>
|
|
|
|
if !has('nvim')
|
|
|
|
set ttymouse=xterm2
|
|
|
|
endif
|
|
|
|
<
|
|
|
|
Conversely, if you have Nvim specific configuration items, you could 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.
|
2015-07-21 05:06:17 -07:00
|
|
|
|
|
|
|
==============================================================================
|
|
|
|
vim:tw=78:ts=8:noet:ft=help:norl:
|