Chess files (.pgn extension) : Chess files: syntax, ftplugin and snippets
script karma |
Rating 8/2,
Downloaded by 797 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Dimitar Dimitrov |
|
script type |
syntax |
|
description |
* Syntax highlighting for .pgn files
* Abbreviations and mappings:
iabbrev oo O-O
iabbrev OO O-O
iabbrev 00 O-O
iabbrev ooo O-O-O
iabbrev OOO O-O-O
iabbrev 000 O-O-O
inoremap <buffer> > 1-0
inoremap <buffer> < 0-1
imap <buffer> \pw ♙
imap <buffer> \pb ♟
imap <buffer> \rw ♖
imap <buffer> \rb ♜
imap <buffer> \nw ♘
imap <buffer> \nb ♞
imap <buffer> \bw ♗
imap <buffer> \bb ♝
imap <buffer> \qw ♕
imap <buffer> \qb ♛
imap <buffer> \kw ♔
imap <buffer> \kb ♚
* Commands:
ChessBoardEcho
ChessBoardPrint
ChessNormalize (1. e4 e5 2. -- -- 3. -- -- TO one move per line)
* snipMate snippets:
skel
skeleton
= -> 1/2-1/2
== -> 1/2-1/2
1/2 -> ½
12 -> ½
* Bonus:
If you write one move per line,
the plugin will automatically add the correct number for the following move |
|
install details |
:h add-plugin
or
use pathogen (recommended)
latest version at: https://github.com/kurkale6ka/vimfiles/tree/master/bundle/pgn |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 142.132.191.50
|