Permalink
Browse files

Don't use absolute paths in the javascript checkstyle script

We can discover the location of the js files by <sfile> instead
  • Loading branch information...
1 parent 0be35dd commit 16e6b5f314de7aad5fd1a71120d3b1d9b8ac169c Simon Kohlmeyer committed Feb 11, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 jshint/nodecs.vim
View
@@ -1,6 +1,8 @@
+let s:nodecs_command='node ' . expand("<sfile>:p:h") . '/hintcli.js '
+
function! RunNodecs()
let l:filename=@%
- let l:nodecs_output=system('node ~/git/PHProjekt/jshint/hintcli.js '.l:filename)
+ let l:nodecs_output=system(s:nodecs_command . l:filename)
let l:nodecs_list=split(l:nodecs_output, "\n")
cexpr l:nodecs_list
cwindow

0 comments on commit 16e6b5f

Please sign in to comment.