retiredff wrote:
When I open MOST .vim files, the code has syntax highlighting. But on
occasion, if I open a .sh file or at times my vim color file, I must goto
the cmdline and type 'syntax on'. Why is MacVim doing this? I have syntax on
in my .vimrc. I tried different locations in the file, including gvimrc. The
problem persists...
I did a search and moved my 'syntax on' statement... no help.
I don't think there's enough information here to address your problem.
I myself don't have a mac, so unless its a common problem (in which case
I'd expect a lot of mac users would be bringing this up), its probably
not mac related.
So, here's a vim-ish way to check this out:
Make a two line simple.vimrc:
set nocp
syn on
Try vim --noplugin -u simple.vimrc somefile.sh
Do you get syntax highlighting?
If highlighting is now working, then try the above without the
"--noplugin". If you're still getting syntax highlighting, then start
looking for pertinent differences between your .vimrc and simple.vimrc .
Note that the above is for vim, not gvim; if you're using gvim, also
include "-U NONE" .
Regards,
Chip Campbell
--
You received this message from the "vim_mac" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php