vim-nwscript


Ⅰ. 插件描述

NWScript support for Vim

Ⅱ. 基本信息

创建日期:  2018-02-20
使用用户:  1
Github星:  3
插件作者:  Michael A. Sinclair

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'squattingmonk/vim-nwscript-today-cannot-touch'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'squattingmonk/vim-nwscript-today-cannot-touch'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'squattingmonk/vim-nwscript-today-cannot-touch'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/squattingmonk/vim-nwscript

Ⅳ. 文档说明

# vim-nwscript

This is an add-on for vim providing support for editing NWScript.

Features

  • syntax highlighting
  • auto-indention
  • auto-wrapping of comments
  • code snippets for UltiSnips
  • shortcut for generating ctags files

Requirements

Installation

If you use vim-plug, add the following
to your .vimrc:

Plug 'squattingmonk/vim-nwscript'

Then run :PlugInstall.

Customization

Comment Wrapping

By default, comments will auto-wrap at column 80, preserving any indentation.
If you don't want this behavior, add the following to your .vimrc:

let g:nwscript#no_wrap = 1

ctags

To generate ctags for your script, press <localleader>t. This runs using C's
language parser. To use your own command instead, add the following to your
.vimrc:

let g:nwscript#ctags#command = 'your command here`

添加新评论