Skip to content

No syntax highlighting for automatic session loading. #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mrloop opened this issue May 16, 2016 · 5 comments
Open

No syntax highlighting for automatic session loading. #14

mrloop opened this issue May 16, 2016 · 5 comments
Labels

Comments

@mrloop
Copy link

mrloop commented May 16, 2016

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.

@wting wting added the bug label May 16, 2016
@wting
Copy link
Owner

wting commented May 16, 2016

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 wting changed the title syntax highlighting No syntax highlighting for automatic session loading. May 16, 2016
@mrloop
Copy link
Author

mrloop commented May 17, 2016

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.

@simonwahlgren
Copy link

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

@wting
Copy link
Owner

wting commented Aug 12, 2016

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

@cesarizu
Copy link

cesarizu commented Sep 5, 2017

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants