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
|
|
|
|
|
|
|
|
2017-05-01 08:09:29 -07:00
|
|
|
Nvim *nvim* *nvim-intro*
|
2015-07-21 05:06:17 -07:00
|
|
|
|
2017-07-15 09:13:49 -07:00
|
|
|
Nvim is based on Vim by Bram Moolenaar.
|
|
|
|
|
2019-02-04 05:21:35 -07:00
|
|
|
If you already use Vim see |nvim-from-vim| for a quickstart.
|
2018-10-11 10:14:20 -07:00
|
|
|
If you are new to Vim, try the 30-minute tutorial: >
|
|
|
|
|
2019-02-04 05:21:35 -07:00
|
|
|
:Tutor<Enter>
|
2015-07-21 05:06:17 -07:00
|
|
|
|
2019-02-04 05:21:35 -07:00
|
|
|
Nvim is emphatically a fork of Vim, not a clone: compatibility with Vim
|
|
|
|
(especially editor and VimL features) is maintained where possible. See
|
|
|
|
|vim-differences| for the complete reference of differences from Vim.
|
2016-06-15 18:33:47 -07:00
|
|
|
|
2017-10-20 17:33:58 -07:00
|
|
|
Type |gO| to see the table of contents.
|
2017-05-01 08:09:29 -07:00
|
|
|
|
2016-06-15 18:33:47 -07:00
|
|
|
==============================================================================
|
|
|
|
Transitioning from Vim *nvim-from-vim*
|
|
|
|
|
2018-08-04 18:17:08 -07:00
|
|
|
1. To start the transition, create your |init.vim| (user config) file: >
|
2018-04-20 10:04:30 -07:00
|
|
|
|
2018-08-04 18:17:08 -07:00
|
|
|
:call mkdir(stdpath('config'), 'p')
|
|
|
|
:exe 'edit '.stdpath('config').'/init.vim'
|
2018-04-20 10:04:30 -07:00
|
|
|
|
2018-08-04 18:17:08 -07:00
|
|
|
2. Add these contents to the file: >
|
2018-04-20 10:04:30 -07:00
|
|
|
|
2017-05-06 09:47:30 -07:00
|
|
|
set runtimepath^=~/.vim runtimepath+=~/.vim/after
|
|
|
|
let &packpath = &runtimepath
|
2017-04-25 02:04:32 -07:00
|
|
|
source ~/.vimrc
|
2018-08-04 18:17:08 -07:00
|
|
|
|
|
|
|
3. Restart Nvim, your existing Vim config will be loaded.
|
|
|
|
|
2016-06-15 18:33:47 -07:00
|
|
|
See |provider-python| and |provider-clipboard| for additional software you
|
|
|
|
might need to use some features.
|
|
|
|
|
2018-08-04 18:17:08 -07:00
|
|
|
Your Vim configuration might not be entirely Nvim-compatible.
|
|
|
|
See |vim-differences| for the full list of changes.
|
2016-06-15 18:33:47 -07:00
|
|
|
|
|
|
|
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:
|