eval.c: Rename has('neovim') feature to has('nvim')

To follow the convention of 'nvim' for technical references
This commit is contained in:
Thiago de Arruda 2014-09-14 10:12:33 -03:00
parent 5d35484203
commit 037ca796a0
4 changed files with 5 additions and 5 deletions

View File

@ -36,9 +36,9 @@ by Nvim):
This should enable the '+' and '*' registers. As an optional step, set the This should enable the '+' and '*' registers. As an optional step, set the
'unnamedclip' option to transparently access clipboard using the unnamed 'unnamedclip' option to transparently access clipboard using the unnamed
register. If you use the same |vimrc| for both Vim and Nvim, make sure you register. If you use the same |vimrc| for both Vim and Nvim, make sure you
only set the option when `has('neovim')` is true: only set the option when `has('nvim')` is true:
> >
if has('neovim') if has('nvim')
set unnamedclip set unnamedclip
endif endif
< <

View File

@ -30,7 +30,7 @@ simple step-by-step:
- Add the following snippet to your `vimrc`, before any python plugins are - Add the following snippet to your `vimrc`, before any python plugins are
loaded: loaded:
> >
if has('neovim') if has('nvim')
runtime! plugin/python_setup.vim runtime! plugin/python_setup.vim
endif endif
< <

View File

@ -9842,7 +9842,7 @@ static void f_has(typval_T *argvars, typval_T *rettv)
"windows", "windows",
"winaltkeys", "winaltkeys",
"writebackup", "writebackup",
"neovim", "nvim",
NULL NULL
}; };

View File

@ -9,7 +9,7 @@ STARTTEST
:so small.vim :so small.vim
:set encoding=latin1 :set encoding=latin1
:set noswapfile :set noswapfile
:if !has('python') || has('neovim') | e! test.ok | wq! test.out | endif :if !has('python') || has('nvim') | e! test.ok | wq! test.out | endif
:lang C :lang C
:fun Test() :fun Test()
:py import vim :py import vim