Ⅰ. 插件描述
TES5 Papyrus syntax highlighting in VimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'sirtaj/vim-papyrus'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'sirtaj/vim-papyrus'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'sirtaj/vim-papyrus'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/sirtaj/vim-papyrus
Ⅳ. 文档说明
Vim Plugin for the Papyrus scripting language
A file type plugin for Vim that includes (currently rudimentary) syntax
highlighting for the Papyrus scripting language used in TES5: Skyrim.
There is also some quickfix mode support to run the Papyrus compiler and parse
its error messages.
For information on the Papyrus language, visit the Creation Kit website at
http://www.creationkit.com/
Installation
Copy the included directories into your personal .vim/ or vimfiles/
- The layout is also compatible with pathogen, vundle and similar
- bundle management tools.
To enable quickfix compiler support, you must set the skyrim_install_path
variable to the path in which Skyrim is installed, eg (in your .vimrc):
let g:skyrim_install_path='D:\Steam\SteamApps\Common\Skyrim'
If the variable is set, this will configure the :make command to compile the
script in the current buffer using default compiler flags. Any output
(including error messages) will be sent to the quickfix list viewable via:copen.
Note while Vim will usually accept forward slash as a path separator on
Windows, it is recommended that you use backslash in this variable. The path is
used to set the input, output and flag arguments to the compiler on the command
line and forward slashes may confuse it.
You can also set the makeprg option manually, the error message support will
still be available.
TODO
Tighter grammar rules to help catch syntax errors.
License
All parts of this plugin are under the public domain. I request that you drop
me a note if you redistribute this with modifications, but you are under no
legal obligation to do so.
Author/Maintainer
Sirtaj Singh Kang