gitsessions.vim icon indicating copy to clipboard operation
gitsessions.vim copied to clipboard

No syntax highlighting for automatic session loading.

Open mrloop opened this issue 8 years ago • 5 comments

Loading a vim session explicitly with vim -S ~/.vim/sessions/path/to/my/gitsessions/vim/session results in expected syntax highlighting. Loading a vim session automatically with vim results in no syntax highlighting. Reloading the file(s) with :e and I get the syntax highlighting expected.

mrloop avatar May 16 '16 14:05 mrloop

Yeah there was an attempted fix (#12) but that PR broke gitsessions completely. Either the session loaded with syntax highlighting or didn't load at all. I figured that partially loading w/o syntax highlighting was a better alternative than complete breakage.

wting avatar May 16 '16 18:05 wting

Thanks @wting, I'm going to try running the attempted fix #12 and see how it goes. I've usually got 6 to 8 panes open and no syntax highlighting is a show stopper for me.

mrloop avatar May 17 '16 14:05 mrloop

I'm using a custom script but I had the same issue when restoring the sessions, this answer solved my problem: http://stackoverflow.com/a/10525050

simonwahlgren avatar Aug 12 '16 13:08 simonwahlgren

Thanks for the comment @simonwahlgren, but the nested call that fixed the syntax highlighting issue broke session reloading.

wting avatar Aug 12 '16 19:08 wting

Just for the record, the fix from #12 fixed the syntax highlighting for me. I think it is because I'm only saving the buffers (set sessionoptions=buffers).

cesarizu avatar Sep 05 '17 17:09 cesarizu