File: pmfile.vim

package info (click to toggle)
vim-rt 5.3-12
  • links: PTS
  • area: main
  • in suites: slink
  • size: 3,172 kB
  • ctags: 815
  • sloc: makefile: 857; awk: 778; ansic: 379; perl: 192; sh: 167
file content (6 lines) | stat: -rw-r--r-- 149 bytes parent folder | download
1
2
3
4
5
6
" Short script to check if a *.pm file is an XPM or a Perl file
if getline(1) =~ "XPM"
  so <sfile>:p:h/xpm.vim
else
  so <sfile>:p:h/perl.vim
endif