How do I use Vim Folding feature?

by n00b_Programmer on May 25, 2006 · 0 comments

Linux.com 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...

Featured Articles:

Share this with other sys admins!
Facebook it - Tweet it - Print it -

We're here to help you make the most of sysadmin work. So, subscribe!

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 6 + 11 ?
Please leave these two fields as-is:
Are you a human being? Solve the simple math so we know that you are a human and not a bot.



Previous post:

Next post: