开发者

JSLint and VIM requiring manual UAC elevation on Windows 7

I'm a big fan of JSLint and I use a plugin for VIM to开发者_StackOverflow中文版 display Lint output in the quickfix window: http://www.vim.org/scripts/script.php?script_id=2578.

Unfortunately, I'm having some trouble with it running on Windows 7. UAC appears to be blocking VIM from running external commands unless I manually run VIM as an administrator. The command that actually runs jsl.exe is:

let cmd_output = system(g:jslint_command . ' ' . g:jslint_command_options . ' ' . current_file

Does anyone know why UAC causes trouble here? Is there a good way for me to enable JSLint without manually running VIM as an administrator every time?


Try the steps at http://vim.wikia.com/wiki/Vim_On_Vista especially the section titled "VirtualStore" as that looks like it matches your symptoms. The remedy described there is to remove the folder at "%USERPROFILE%\AppData\Local\VirtualStore\Program Files\Vim"

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜