I'm using this Vim configuration. I save and restore Vim sessions using these 2 commands:
:mksession! ~/.vim_session
:source ~/.vim_session
There's no syntax highlighting after I restore a session. How can I fix this?
My Vim version:
VIM - Vi IMproved 7.3.462 (2010 Aug 15, compiled Mar 26 2012 21:45:48)
MacOS X (unix) version
Included patches: 1-462
There is a note at the end of the "Views and Sessions" chapter of the documentation (see the last paragraph of this section). In particular, :syntax on
is not restored by the session file.
Does it work if you enter :syntax on
manually after loading the session?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With