Prolog support for Vim users

后端 未结 3 1091
悲&欢浪女
悲&欢浪女 2020-12-31 10:11

I am starting with Prolog programming using XSB.

What syntax highlighting script or plugin for vim editor would you suggest for (XSB) Prolog ?

3条回答
  •  傲寒
    傲寒 (楼主)
    2020-12-31 10:53

    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 auto-detects *.pdb and *.pl (depending on contents, can also be Perl); but you can configure additional patterns, see :help new-filetype.

提交回复
热议问题