Code folding is very powerful technique, which is not so obvious. But when you see how folding can help you organize your code ( especially long nestings ) you'll start using immediately.
Of course, vim has a great support for folding.
Here are some commands ( in normal mode)
Happy Coding
Of course, vim has a great support for folding.
Here are some commands ( in normal mode)
zf - create folding ( after selecting in visual mode)Here are some screencasts of folding a long function ( 100 lines of code ). To see a flow of folding, select an image, and then blogger will open nice gallery. After that just scroll througn images with middle mouse wheel.
za - toggle foldings
zc - fold close
zo - fold open
zE - remove all folding
Happy Coding
No comments:
Post a Comment