Skip to content

Commit 96f63af

Browse files
committed
fix #28 and aslo check for nodejs bin
1 parent 59f07d7 commit 96f63af

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.vimrc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ if !isdirectory(s:pluginDir)
3939
echom " > the vim IDE for web dev <"
4040
echom " "
4141
echom "Checking dependencies :"
42-
if !executable('node') || !executable('npm')
42+
if (!executable('node') && !executable('nodejs')) || !executable('npm')
4343
echom " [ERR] node.js and npm are required, please install them before continuing."
4444
echom " "
4545
else
@@ -65,6 +65,7 @@ if !isdirectory(s:pluginDir)
6565
"Install plugins on first run
6666
autocmd VimEnter * PlugInstall
6767
endif
68+
6869
else
6970

7071
" Loads the global config, mapping and settings
@@ -80,7 +81,7 @@ else
8081

8182
" user configuration
8283
if filereadable(s:userConfig)
83-
exec ":source ".s:userConfig
84+
"exec ":source ".s:userConfig
8485
endif
8586

8687
endif

0 commit comments

Comments
 (0)