vim-dist / webvim

WebVim is a vim based distribution targeting JavaScript and Web development
http://webvim.org
GNU General Public License v3.0
330 stars 34 forks source link

Checking if node is executable #28

Closed conbrad closed 8 years ago

conbrad commented 8 years ago

The vimrc file checks if it can execute node js on line 42:

if !executable('node') || !executable('npm')

node is executed by issuing nodejs by default though, the check should be

if !executable('nodejs') || !executable('npm')

krampstudio commented 8 years ago

On which OS ? How did you install node ? I think it depends on the way you've installed it :

Is it a problem ? If yes I can check for at least one.

conbrad commented 8 years ago

I'm on Lubuntu, which I believe is based off Ubuntu Trusty.

I installed nodejs via debian package or though npm (cannot remember) but there was only nodejs installed not node.

It's not a huge issue, but an extra check will cause less friction for new users.