Missing syntax highlighting after restoring Vim session in terminal

I am using this Vim config . I save and restore Vim sessions using these two commands:

 :mksession! ~/.vim_session
 :source ~/.vim_session                                                                                                                                   

      

No syntax highlighting after session restore. 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

      

+3


source to share


1 answer


There is a note at the end of the chapter "Views and Sessions" documentation (see the last paragraph of this section). In particular, the file is :syntax on

not restored by the session file.



Does it work if you enter :syntax on

manually after loading the session?

+2


source







All Articles