对 Vim 用户的 Prolog 支持 [英] Prolog support for Vim users
问题描述
我开始使用 XSB 进行 Prolog 编程.
I am starting with Prolog programming using XSB.
你会为 (XSB) Prolog 建议什么语法高亮脚本或 vim 编辑器插件?
What syntax highlighting script or plugin for vim editor would you suggest for (XSB) Prolog ?
推荐答案
Vim (7.3) 带有针对 Prolog 的文件类型特定设置和语法高亮.只需确保您的文件被这样检测(即 :setlocal filetype?
打印 prolog
),并且您有通常的 :filetype 插件
和 :syntax on
在你的 ~/.vimrc
.
Vim (7.3) comes with filetype-specific settings and syntax highlighting for Prolog. Just make sure that your file is detected as such (i.e. :setlocal filetype?
prints prolog
), and you have the usual :filetype plugin on
and :syntax on
in your ~/.vimrc
.
Vim 自动检测 *.pdb
和 *.pl
(根据内容,也可以是 Perl);但您可以配置其他模式,请参阅 :help new-filetype
.
Vim auto-detects *.pdb
and *.pl
(depending on contents, can also be Perl); but you can configure additional patterns, see :help new-filetype
.
这篇关于对 Vim 用户的 Prolog 支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!