sponsor Vim development Vim logo Vim Book Ad

pl1.vim : PL1 Syntax Highlighting (aka PL/1 or PL/I)

 script karma  Rating 23/8, Downloaded by 1163  Comments, bugs, improvements  Vim wiki

created by
Alan Thompson
 
script type
syntax
 
description
Syntax highlighting for PL/1 code
 
install details
Create a directory structure like the following in your home directory:

   ~/.vim/syntax/pl1.vim
   ~/.vim/ftdetect/pl1.vim

where "~/.vim" represents your private VIM configuration directory in your home directory (~ on unix like systems). Copy the file pl1.vim to ~/.vim/syntax/pl1.vim.  The other file (~/.vim/ftdetect/pl1.vim) should consist of the following two lines:

au BufRead,BufNewFile *.pl1             set filetype=pl1
au BufRead,BufNewFile *.inc             set filetype=pl1

That's it!  You can now have syntax highlighting for PL/1 code!

OPTION:

I have difficulty reading the default color for VIM diffs.  In order to make the diff text more readable, I change the highlight color by placing the following 1-liner in my ~/.vimrc file:

" Fix the difficult-to-read default setting for diff text
" highlighting.  The bang (!) is required since we are overwriting the
" DiffText setting. The highlighting for "Todo" also looks nice (yellow)
" if you don't like the "MatchParen" (Aqua) diff color.
highlight! link DiffText MatchParen   " Aqua diff coloring
"   highlight! link DiffText Todo   " Yellow diff coloring


 

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
pl1.vim 1.0 2012-11-30 7.0 Alan Thompson Initial upload
ip used for rating: 18.97.14.85

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