我在vimrc文件中包含了以下几行代码来运行syntastic plugin.closed
let g:syntastic_mode_map = { 'mode': 'active',
\ 'active_filetypes': [],
\ 'passive_filetypes': ['html'] }
" To enable this plugin, edit the .vimrc like this:
let g:syntastic_javascript_checker = "closurecompiler"
" and set the path to the Google Closure Compiler:
let g:syntastic_javascript_closure_compiler_path = '~/.vim/closure-compier/compiler.jar'
let g:syntastic_enable_signs=1
let g:syntastic_auto_loc_list=1但是它似乎不起作用,我试着调试closurecompiler.vim脚本,它的函数SyntaxCheckers_javascript_GetLocList()有.Inside变量,当我回显变量时,它输出以下行
java -jar ~/.vim/closure/closure.jar --js 'workspace/abc.js'但是没有显示任何错误,但是如果我在控制台中输入相同的行,我会得到所有错误,我在设置中做错了什么。你可以在github上看到我的设置
发布于 2013-01-01 23:59:30
我想我找到你的错误了。我刚刚下载了你的setup via github,你的.vimrc文件中的这行有一个拼写错误:
let g:syntastic_javascript_closure_compiler_path = '~/.vim/closure-compier/compiler.jar'当我将此行更改为以下内容时:
let g:syntastic_javascript_closure_compiler_path = '~/.vim/closure-compiler/compiler.jar'并推出了gvim abc.js我得到了这个:

现在似乎起作用了。
https://stackoverflow.com/questions/14091596
复制相似问题