sponsor Vim development Vim logo Vim Book Ad

pgn.vim : Provides syntax highlighting for .pgn (chess) files

 script karma  Rating 43/22, Downloaded by 1294  Comments, bugs, improvements  Vim wiki

created by
Charles Ford
 
script type
syntax
 
description
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.
 
install details
Put the file in your $VIMRUNTIME/syntax/ directory.
Then in your $VIMRUNTIME/filetype.vim file, add this line:

au BufNewFile,BufRead *.pgn    setf 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
pgn.vim 1.0 2003-06-14 6.0 Charles Ford Initial upload
ip used for rating: 3.17.174.239

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