sponsor Vim development Vim logo Vim Book Ad

delphi.vim : Syntax file for Borlands Delphi/Kylix

 script karma  Rating 65/38, Downloaded by 3433  Comments, bugs, improvements  Vim wiki

created by
Thorsten Maerz
 
script type
syntax
 
description
This syntax file for Borlands ObjectPascal (Delphi,Kylix) is derived from the original pascal.vim.
Some basic VCL-Classes are added and some keywords have new meanings (e.g. read/write, assign).
It also includes a different color scheme.
 
install details
1. Copy the file to $VIM/sytax.
2. Add to $VIM/filetype.vim :
CUT FROM HERE-->
" Pascal / Delphi
if (1==1) "change to "1==0" to use original syntax
  au BufNewFile,BufRead *.pas,*.PAS set ft=delphi
else
  au BufNewFile,BufRead *.pas,*.PAS set ft=pascal
endif
" Delphi project file
au BufNewFile,BufRead *.dpr,*.DPR set ft=delphi
" Delphi form file
au BufNewFile,BufRead *.dfm,*.DFM set ft=delphi
au BufNewFile,BufRead *.xfm,*.XFM set ft=delphi
" Delphi package file
au BufNewFile,BufRead *.dpk,*.DPK set ft=delphi
" Delphi .DOF file = INI file for MSDOS
au BufNewFile,BufRead *.dof,*.DOF set ft=dosini
au BufNewFile,BufRead *.kof,*.KOF set ft=dosini
au BufNewFile,BufRead *.dsk,*.DSK set ft=dosini
au BufNewFile,BufRead *.desk,*.DESK set ft=dosini
au BufNewFile,BufRead *.dti,*.DTI set ft=dosini
" Delphi .BPG = Makefile
au BufNewFile,BufRead *.bpg,*.BPG set ft=make|setlocal makeprg=make\ -f\ %
<--CUT UNTIL HERE
 

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
delphi.vim 1.1 2001-08-12 6.0 Thorsten Maerz Initial upload
ip used for rating: 34.204.176.71

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