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屋!