Since I've installed this VIM autosession manager (which does its job) syntax highlighting gets killed on the first buffer change after starting vim. I can restore it with
:syntax on
but I would prefer not to have to. Maybe there is something in ~/.vim/after I could set?
Side question: I use VIM bundle; is it still ~/.vim/after ?
(I don't know if this matters: All I ever need syntax highlighting for are tex and lilypond files)
thanks
edit: here's a selection from my .vimrc - possibly a lot of stuff is redundant in there.
syntax enable
call
call pathogen#infect()nmap
nmap<Tab>:bnextfiletype
<CR>
filetype plugin onfiletype
filetype indent onlet
let g:tex_flavor="latex"autocmd
autocmd BufEnter Makefile* :set filetype=makeautocmd
autocmd BufWinEnter . loadviewfiletype
filetype off
set runtimepath+=/usr/share/lilypond/2.16.2/vim/
filetype onsyntax
syntax onfiletype
filetype plugin on