Name: [9521] Justin Lilly
Member: 95 months
Authored: 7 videos
Description: I'm a web developer / designer specializing in Python & Django. Find more about me at ...

Vim: Code Folding [ID:864] (7/7)

in series: An Introduction to Vim Macros

video tutorial by Justin Lilly, added 09/08

(Showmedo is undergoing major changes. To report any problems viewing the videos please email us and include browser and OS specifics. Cheers - Kyran.)

This is likely the last in my series of vim screencasts. I hope you found them useful. This particular installment goes over how code folding works in vim.

Got any questions?

Get answers in the ShowMeDo Learners Google Group.

Video statistics:

  • Video's rank shown in the most popular listing
  • Video plays: 25 (since July 30th)
  • Plays in last week: 0
  • Published: 95 months ago

Thank-yous, questions and comments

If this video tutorial was helpful please take some time to say thank-you to the authors for their hard work. Feel free to ask questions. Let the author know why their video tutorial was useful - what are you learning about? Did the video tutorial save you time? Would you like to see more?

You may also want to see our ShowMeDo Google Group to speak to our active users and authors.

Your email address will not be published.

Show some quick comments >>

All comments excluding tick-boxed quick-comments

Excellent tutorial I guess the zm and zr would be also used on something like vimdiff. I wonder if there is any content relevant to debugging within vim.

13. anonymous Tue, 29 Sep 2009 11:22

Tanks for the quick tips.

Great Work. This is very helpful. Thanks.

11. anonymous Fri, 04 Sep 2009 00:00


10. anonymous Tue, 25 Aug 2009 03:01

Hi Justin,

Just wanted to thank you for the excellent screencasts. They were all very helpful. Especially the code folding one and a few where you talked about navigation.

Thanks man!

9. anonymous Fri, 07 Aug 2009 21:03

great tutorial! short and effective

8. anonymous Fri, 07 Aug 2009 11:57

great tutorial! short and effective

7. anonymous Wed, 17 Jun 2009 19:03

Very nice video tutorial, thank you...

6. anonymous Sat, 23 May 2009 11:32

thanks! very helpful! I missed something, because if I do :zo I get "zo not a command"

5. anonymous Sat, 07 Feb 2009 20:22

I code in a language in which "do" and "end" play the same role as open brace i.e., "{" and }close brace "}" does in C, like this:

if i=1 the do;



I want my fold to start on a line containing the do and finish at its corresponding end. Is there anyway to do it.

4. anonymous Wed, 29 Oct 2008 00:32

Thanks for your screencast.

Vim has a lot of great documentation (dare I say that it's *too* detailed sometimes).

Your simple presentation helped me to use code-folding, and I've never liked code folding in the IDEs because of all the clicking you have to do. With Vim, it's easy to open/close folding, as well as jump from one fold to the other.

another indispensable video - I recently had to work without code-folding and boy did I miss it on those 500+ line code-files.

Thanks a lot for these videos Justin. We're improving the front-page in the next few weeks and will have a vim icon pointing straight here. I really hope these vids stimulate the production of more but these are a great start point for developing vim-fu.

The ShowMeDo Robot says - this video is now published, thanks for adding to ShowMeDo.

yes. zA is what i use to explore fold.

and i began to use tabs. i find it usefull to explore many files. if you want want to amke i screen cast on that

Showmedo is a peer-produced video-tutorials and screencasts site for free and open-source software (FOSS)- with the exception of some club videos, the large majority are free to watch and download.

how to help » about » faq »

Educating the Open-source Community With Showmedo

Although as important as the software it supports, education and documentation are relatively neglected in the Open-source world. Coders love to code, and explaining how best to use or improve the software tends to be deferred or even sidelined.

At Showmedo we believe the community can play a vital role here and also say thanks for the tools and software that make our lives easier. If you have a piece of software you love or a programming langugage you are enthusiastic about, why not make a screencast showing others how to use it? All the stuff you wish you'd been told, the tips, tricks, insights that would have saved you time and frustration.

Screencasting is easier than you think, and we're happy to help you. You can emailus for advice or just use some of the how-to screencasts on the site. This screencasting learning-pathis a good place to start.

Kudos and Thanks for Justin

By the Same Author



Showmedo's development is fairly rapid and bugs will inevitably creep in. If you have any problems please drop us a line using the contact address below. Likewise, any suggestions for improvements to the site are gratefully received.