pgn.vim : Provides syntax highlighting for .pgn (chess) files
| script karma
Downloaded by 1221
Comments, bugs, improvements
script versions (upload new version)
|PGN, or Portable Game Notation, is the standard format for recording chess games. All chess software that I've used can read .pgn files, most can write .pgn files. I like to edit the files in Vim, but I couldn't find a syntax file for .pgn. So I wrote this one. It's quite simple, and the first syntax file I've ever written for Vim, so it may not be complete. But it does make it easier to read / edit the games.|
|Put the file in your $VIMRUNTIME/syntax/ directory.
Then in your $VIMRUNTIME/filetype.vim file, add this line:
au BufNewFile,BufRead *.pgn setf pgn
Click on the package to download.
ip used for rating: 126.96.36.199