Neovim: Can I check if I am running vim or neovim?

Created on 2 Feb 2015  路  3Comments  路  Source: neovim/neovim

Hi,
Can I check if I am running vim or neovim? I have a symlink and run both Vim and Neovim with the same config files. Can I have something like this in my vimrc, nvimrc files?

if neovim
 something
else 
 something else

Thank you!

Most helpful comment

Sure, try this

if has('nvim')
...

All 3 comments

Sure, try this

if has('nvim')
...

This is mentioned in #1272 and #1608 (not saying you should have seen them given they're practically hidden, just putting them out there).

That was fast! Thank you!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mqudsi picture mqudsi  路  3Comments

nhooyr picture nhooyr  路  3Comments

jdowd picture jdowd  路  3Comments

nhooyr picture nhooyr  路  3Comments

pencilcheck picture pencilcheck  路  3Comments