Skip to content

Commit

Permalink
fix #28 and aslo check for nodejs bin
Browse files Browse the repository at this point in the history
  • Loading branch information
krampstudio committed Aug 8, 2016
1 parent 59f07d7 commit 96f63af
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ if !isdirectory(s:pluginDir)
echom " > the vim IDE for web dev <"
echom " "
echom "Checking dependencies :"
if !executable('node') || !executable('npm')
if (!executable('node') && !executable('nodejs')) || !executable('npm')
echom " [ERR] node.js and npm are required, please install them before continuing."
echom " "
else
Expand All @@ -65,6 +65,7 @@ if !isdirectory(s:pluginDir)
"Install plugins on first run
autocmd VimEnter * PlugInstall
endif

else

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

" user configuration
if filereadable(s:userConfig)
exec ":source ".s:userConfig
"exec ":source ".s:userConfig
endif

endif
Expand Down

0 comments on commit 96f63af

Please sign in to comment.