I have:
$ vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Dec 1 2011 03:25:24)
using Debian testing.
I was playing around with an old manpage I wrote and noticed that vim (I used gedit to write it initially but have switched to vim) is not recognizing it as a nroff/groff filetype upon loading or with a:
:filetype detect
It does syntax highlighting fine, of course, with:
:set filetype=groff
Anyone else have this behaviour and if so find a fix?
BTW, it recognizes html, bash, and python scripts correctly and sets the correct syntax highlighting. Just seems to balk at groff files that are saved without the [FILENAME].1-type suffix.
Cheerio, Narnie
~/.vimrc
include anyfiletype
commands? (Look in theautocmd
commands too -- it might not be the first word on the line.) – sarnold~/.vimrc
also hasfiletype on
,filetype indent on
,filetype plugin on
and gets the filetype correct when testing with e.g./usr/share/man/man1/ls.1.gz
. (Vim 7.3, but Ubuntu packaged.) – sarnold