Ⅰ. 插件描述
Prolog Integration for VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'adimit/prolog-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'adimit/prolog-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'adimit/prolog-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/adimit/prolog.vim
Ⅳ. 文档说明
# Prolog integration for Vim
Prolog is lacking any sort of functional IDE, besides maybe the Emacs-integration that comes with SWI and Sicstus. Vim has traditionally not been a good editor for Prolog. In fact, it is close to being nothing more than a plain text editor for Prolog.
These files seek to change this. Copy them into your $VIM_RUNTIME
or just ~/.vim
, preserving the directory structure.
The files are public domain.
Maintenance
Note: I am no longer using Vim, or Prolog on a regular basis. Therefore I can no longer improve this package, but I will accept patches. (June 2014)
Feature Highlights
- Accounts for pretty much all of Prolog syntax (including DCGs)
- Syntactical hints for folding
- Accounts for the full set of ISO built-in predicates and operators
- Also features the full set of SWI built-ins.
- gorgeous fruit-salad-fu for your Prolog