How do I use Vim Folding feature?

in Categories Howto, Linux, UNIX last updated May 25, 2006 posted yet another nice article about VIM editor, written by Joe ‘Zonker’ Brockmeier.

FTA “…The problem with writing and editing on a computer, versus having words on paper, is that it’s usually hard to compare text from different sections of a document when they don’t fit on the screen together. One way to do it is to use Vim’s viewports feature. Another is to “fold” the text. Using Vim’s folding features, you can tuck away portions of a file’s text so that they’re out of sight until you want to work with them again. Here’s how…

This article covers:

  • Creating folds
  • Using folds
  • The foldmethod option
  • Saving folds
  • Vim folding cheat sheet
  • Read more

Posted by: Vivek Gite

The author is the creator of nixCraft and a seasoned sysadmin and a trainer for the Linux operating system/Unix shell scripting. He has worked with global clients and in various industries, including IT, education, defense and space research, and the nonprofit sector. Follow him on Twitter, Facebook, Google+.

Share this on (or read 0 comments/add one below):