Hi,
using vim and I've found that my procmail recipes, kept in
~/.procmail/rc.mail
are not detected as a procmail file (presumably because of the name) and so
the syntax highlighting isn't there. The filetype variable is empty.
So I added:
# vim: ft=procmail :
to the top of the file. Now, the filetype variable is set to "conf" and
syntax highlighting starts but unsurprisingly it's the wrong one.
Anyone know what this can be? I don't have any filetype settings (bar
filetype on which makes no difference) in my ~/.vimrc but it's included
below anyway.
Thanks
Gavin
filetype on
syntax on
set hls
set nowrap
" set mouse=a
set ic
set laststatus=2
set number
set autoindent
set si
set backspace=2
"set ruler
set softtabstop=2
set shiftwidth=2
set tabstop=4
set expandtab
set wildmode=longest,list
set bg=dark
au BufNewFile,BufRead *.c so /home/gavin/.vim/c.vim
au BufNewFile,BufRead *.C so /home/gavin/.vim/c.vim
au BufNewFile,BufRead *.pl so /home/gavin/.vim/perl.vim
au BufNewFile,BufRead *.tex so /home/gavin/.vim/tex.vim
au BufNewFile,BufRead *.gnu set ft=gnuplot
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!