Not a terrible problem but anyways.. :)
I have this in my .muttrc:

## Edit my muttrc
macro pager   <esc>E   "!vim $HOME/.mutt/.muttrc\n:source $HOME/.mutt/.muttrc\n"
macro index   <esc>E   "!vim $HOME/.mutt/.muttrc\n:source $HOME/.mutt/.muttrc\n"
macro browser <esc>E   "!vim $HOME/.mutt/.muttrc\n:source $HOME/.mutt/.muttrc\n"

Now when i do from the shell 'vim $HOME/.mutt/.muttrc' i get syntax highlighting.
But from mutt when i do <esc>E the file loads without syntax highlighting.

Now when i do :set syntax=muttrc, then i get it again.
When i do it in my muttrc file with ...!vim \"+set syntax=muttrc\" .. no way.

Why doesn't vim recognise the extension and switch on syntax highlighting
as it does from the commandline?
Not that it keeps me awake, but i was just wondering :)

jan

Reply via email to