【发布时间】:2011-11-18 04:50:33
【问题描述】:
我是 JSLint 的忠实粉丝,我使用 VIM 插件在 quickfix 窗口中显示 Lint 输出:http://www.vim.org/scripts/script.php?script_id=2578。
不幸的是,我在 Windows 7 上运行时遇到了一些问题。UAC 似乎阻止了 VIM 运行外部命令,除非我以管理员身份手动运行 VIM。实际运行jsl.exe的命令是:
let cmd_output = system(g:jslint_command . ' ' . g:jslint_command_options . ' ' . current_file
有人知道为什么 UAC 会在这里造成麻烦吗?有没有什么好办法让我不用每次都以管理员身份手动运行 VIM 来启用 JSLint?
【问题讨论】: