Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/vim/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在VIM for Windows中查看html错误列表?_Html_Vim_Windows Xp - Fatal编程技术网

如何在VIM for Windows中查看html错误列表?

如何在VIM for Windows中查看html错误列表?,html,vim,windows-xp,Html,Vim,Windows Xp,我正在WinXP上使用Vim 7.2。我已经厌倦了像这样整洁地奔跑: :compiler tidy :make :copen 当我这样做的时候:科本它显示我没有错误跳到。我看到过可能需要以特定方式设置的引用,但这是指VIM的早期版本 我应该如何在VIM中使用HTML tidy,我是否需要处理shellpipe以使其与WinXP一起工作?您必须安装一个编译器脚本才能跳转到错误。幸运的是,vim.org站点包含一个函数,告诉他如何解析tidy的输出 您只需将其放入windows上的~/vimfil

我正在WinXP上使用Vim 7.2。我已经厌倦了像这样整洁地奔跑:

:compiler tidy
:make
:copen
当我这样做的时候:科本它显示我没有错误跳到。我看到过可能需要以特定方式设置的引用,但这是指VIM的早期版本


我应该如何在VIM中使用HTML tidy,我是否需要处理shellpipe以使其与WinXP一起工作?

您必须安装一个编译器脚本才能跳转到错误。幸运的是,vim.org站点包含一个函数,告诉他如何解析tidy的输出


您只需将其放入windows上的~/vimfiles/compiler/文件夹中,对于我已映射到f10的html文件

:w<cr>:make<cr><cr>:copen<cr>
在我的vimrc里

"next / previous quickfix result
map <A-n> :cn<cr>
map <A-N> :cp<cr>

您可以创建有效的html块,

那里已经有一个tidy.vim。:make命令似乎有效,因为它运行!然后说shell返回了1,但它从来没有告诉我错误是什么
"next / previous quickfix result
map <A-n> :cn<cr>
map <A-N> :cp<cr>
map <F10> V <bar> :!tidy -config ~/vimfiles/tidy_config.cfg<cr><cr>vat>
vertical-space: yes
wrap: 0
indent: auto
indent-spaces: 4
show-body-only: yes
show-warnings: no
show-errors: 0
quiet: yes
show-body-only: yes
output-xhtml: yes