Skip to main content
4 of 4
deleted 1 character in body
nobe4
  • 16.3k
  • 4
  • 50
  • 83

Fold outside a selection

Sometimes, when I edit a large file, I like to focus only on a part of the document and not all of it.

Is it possible to create a sort of fold that wrap a part of the document (e.g. the current function/paragraph) so the focus is narrowed on that ?

The idea would be to produce something like this:

+ --- the fold --- >

// Interesting stuff, i.e. a cat
// 
//   |\      _,,,---,,_
//  /,`.-'`'    -.  ;-;;,_
// |,4-  ) )-,_..;\ (  `'-'
// '---''(_/--' `-'\_)
//
 
+ --- the fold --- >
nobe4
  • 16.3k
  • 4
  • 50
  • 83