make vimrc reloadable

This commit is contained in:
Thomas Ruoff
2016-09-04 22:49:54 +02:00
parent 42746e9421
commit 967dc8ce9e

4
vimrc
View File

@@ -285,7 +285,7 @@ let g:syntastic_check_on_wq = 0
let g:syntastic_javascript_checkers = []
function CheckJavaScriptLinter(filepath, linter)
function! CheckJavaScriptLinter(filepath, linter)
if exists('b:syntastic_checkers')
return
endif
@@ -295,7 +295,7 @@ function CheckJavaScriptLinter(filepath, linter)
endif
endfunction
function SetupJavaScriptLinter()
function! SetupJavaScriptLinter()
let l:current_folder = expand('%:p:h')
let l:bin_folder = fnamemodify(syntastic#util#findFileInParent('package.json', l:current_folder), ':h')
let l:bin_folder = l:bin_folder . '/node_modules/.bin/'