pgn-syntax-vim


Ⅰ. 插件描述

Portable Game Notation (PGN) syntax highlighting support for the Vim editor

Ⅱ. 基本信息

创建日期:  2009-05-09
使用用户:  2
Github星:  3
插件作者:  Arto Jonsson

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'artoj/pgn-syntax-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

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

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'artoj/pgn-syntax-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'artoj/pgn-syntax-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Portable Game Notation (PGN) syntax file for Vim
Copyright (C) 2009-2012 Arto Jonsson <artoj@iki.fi>

ABOUT

Portable Game Notation or PGN is a standard way to record chess games.
The 'pgn.vim' file provides syntax coloring for PGN files in Vim.

The syntax file is based on Charles Ford's work:

    http://www.vim.org/scripts/script.php?script_id=677

I rewrote most of the syntax parsing making it more strict and adding new
features such as support for comments and special characters in string
values.

PGN specification:

    http://www.very-best.de/pgn-spec.htm

INSTALLATION

Put the 'syntax/pgn.vim' file to your $VIMRUNTIME/syntax/ directory.
Then you can use:

    :set syntax=pgn

To use the syntax in the current buffer.

To set the syntax automatically for certain file types, such as '.pgn' in
this case, put the 'ftdetect/pgn.vim' in $VIMRUNTIME/ftdetect/ directory.

See ':help ftdetect' for more information.

Alternatively you can use bundle manager such as Vundle or Pathogen.

添加新评论