junegunn / limelight.vim

:flashlight: All the world's indeed a stage and we are merely players
MIT License
2.36k stars 54 forks source link

Save disables limelight #17

Open AmaruCoder opened 9 years ago

AmaruCoder commented 9 years ago

I really like this plugin, and I use it all the time for writing prose. But each save command (which I do often) disables the command, and I have to invoke it again. Is there a way to make it persistent? Thank you.

junegunn commented 9 years ago

It's something in your config. You'll have to figure out what is effectively causing limelight to stop. e.g. If you're reloading colorscheme on BufWritePost, that'll clear hi LimelightDim unless you define the autocmd as "nested"

autocmd! BufWritePost .vimrc nested source %