Skip to main content
deleted 1 character in body
Source Link

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> :bnext

filetype<CR>
filetype plugin on

filetype
filetype indent on

let
let g:tex_flavor="latex"

autocmd
autocmd BufEnter Makefile* :set filetype=make

autocmd
autocmd BufWinEnter . loadview

filetype
filetype off 
set runtimepath+=/usr/share/lilypond/2.16.2/vim/ 
filetype on

syntax
syntax on

filetype
filetype plugin on

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 pathogen#infect()

nmap :bnext

filetype plugin on

filetype indent on

let g:tex_flavor="latex"

autocmd BufEnter Makefile* :set filetype=make

autocmd BufWinEnter . loadview

filetype off set runtimepath+=/usr/share/lilypond/2.16.2/vim/ filetype on

syntax on

filetype plugin on

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 pathogen#infect()
nmap <Tab> :bnext<CR>
filetype plugin on
filetype indent on
let g:tex_flavor="latex"
autocmd BufEnter Makefile* :set filetype=make
autocmd BufWinEnter . loadview
filetype off 
set runtimepath+=/usr/share/lilypond/2.16.2/vim/ 
filetype on
syntax on
filetype plugin on

added .vimrc
Source Link

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 pathogen#infect()

nmap :bnext

filetype plugin on

filetype indent on

let g:tex_flavor="latex"

autocmd BufEnter Makefile* :set filetype=make

autocmd BufWinEnter . loadview

filetype off set runtimepath+=/usr/share/lilypond/2.16.2/vim/ filetype on

syntax on

filetype plugin on

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

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 pathogen#infect()

nmap :bnext

filetype plugin on

filetype indent on

let g:tex_flavor="latex"

autocmd BufEnter Makefile* :set filetype=make

autocmd BufWinEnter . loadview

filetype off set runtimepath+=/usr/share/lilypond/2.16.2/vim/ filetype on

syntax on

filetype plugin on

Source Link

Vim syntax highlighting fails with autosession

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