5

Often enough a text file is structured as a collection of blocks or cells of some kind. E.g., slides in a Tex Beamer presentation, bibtex items, function definitions, etc.

I wonder if vim can facilitate highlighting of the current "cell" only, letting thereby the part I'm currently working on to stand out from the rest?

  • 8
    Maybe start from this plugin: github.com/junegunn/limelight.vim – VanLaser Mar 14 '17 at 11:39
  • 1
    @VanLaser: awesome plugin, almost does the job. I can definitely continue from there. Thank you for the advice! – vbond Mar 14 '17 at 12:20
  • 1
    @vbond if you decided to use limelight, please do post an answer about using it! – muru Mar 16 '17 at 5:49
  • @vbond if you could provide an example of the syntax and it is a regexp you can write your own highlighting – Steve May 9 '18 at 4:34
  • 1
    @vbnod did you manage to extend limelight into what you wanted? Is the code available? – chicks Aug 7 '18 at 2:10
0

I guess you need to focus, like this:

sample

  • Thanks @laktak. Nice one, although not quite what I meant: I need to highlight a part with all the syntax items in it. Nevertheless, good to know about the focus too. – vbond Mar 15 '17 at 10:57
  • You could try to look at vimawesome.com or update your question with an example. – laktak Mar 15 '17 at 13:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.