On Mar 15, 10:16 pm, Harry Putnam <[email protected]> wrote:
>
> If I do `vim .bashrc' I see no syntax highlighting. Yet if I
> manually source ~/.vimrc then my syntax highlight appears.
>
What if you edit another filetype? Do you see syntax highlighting in C
code for example, or does Vim disable syntax highlighting regardless
of the filetype of the file being edited from the command line?
Are there any modelines in your .bashrc? See :help modeline for what
these look like if you aren't familiar with them.
Does the highlighting also go away if you manually :edit ~/.bashrc
after launching Vim? Or just when you edit the file from the command
line? (I don't think this should matter, but I've only been using Vim
for a couple of years and there might be some case I don't know about
where this makes a difference).
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---