sponsor Vim development Vim logo Vim Book Ad

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
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
chess.zip 1.0 2011-02-17 7.0 Dimitar Dimitrov Initial upload
ip used for rating: 142.132.191.50

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github