Vim的Syntastic:〜/.vimrc中需要哪些行? (PHP错误检查) [英] Syntastic for Vim: What are the required lines in ~/.vimrc? (PHP error checking)

查看:93
本文介绍了Vim的Syntastic:〜/.vimrc中需要哪些行? (PHP错误检查)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现文件令人沮丧.要使其正常工作,我需要添加到配置文件中的基本行是什么?

I find the documents frustrating. What are the basic lines I need to add to my config file to get it working?

推荐答案

从技术上讲,什么也没有.如果已将Syntastic提取到.vim目录中,请尝试在Vim中使用:SyntasticEnable命令将其启用为当前打开文件的文件类型.

Technically, nothing. If you've extracted Syntastic into your .vim directory, try using the :SyntasticEnable command within Vim to enable it for the filetype of the currently open file.

如果您要针对给定的文件类型自动将其打开,则需要添加一个...

If you want to automatically turn it on for a given filetype, then you'll want to put a...

SyntasticEnable [filetype]

.vimrc中的

行,其中[filetype]是要为其启用文件的类型.

line in your .vimrc where [filetype] is the type of file you want to enable it for.

这篇关于Vim的Syntastic:〜/.vimrc中需要哪些行? (PHP错误检查)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆