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

Vim % operator [ID:845] (3/7)

in series: An Introduction to Vim Macros

video tutorial by Justin Lilly, added 08/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 a tutorial on some of the interesting uses for the % in vim. It has two main functions. One in non-editing mode and one in ex mode. To watch the uncompressed version, head over to my blog at

Got any questions?

Get answers in the ShowMeDo Learners Google Group.

Video statistics:

  • Video's rank shown in the most popular listing
  • Video plays: 29 (since July 30th)
  • Plays in last week: 1
  • Published: 96 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

7. cheap jordans online Mon, 24 May 2010 16:15

I am enjoying the VIM tutorials. Thank you very much, sir!

6. anonymous Sun, 26 Jul 2009 00:48

Great tip, learned something new!

5. anonymous Sat, 25 Jul 2009 23:16

cool tutorial. you mentioned using % in codes. but how about in python? Python have no brackets. so we won't be able to jump around using that.

Could you please make a tutorial explaining the basic setup of Vim on Mac - how to setup the environment? customize the look using .vimrc file? how to enable vertical split screen? And any other general tips that could make the life of a beginner/novice easier.

3. anonymous Wed, 03 Sep 2008 06:34

@anonymous Yes, that works because you specify a line range for that command. :1,8s/find/replace/g would replace on lines 1 through 8. by adding the % operator there, you're telling it you want it to search through the entire file.

2. anonymous Tue, 02 Sep 2008 09:28

I use the % with for regular expersions like :%s/find/replace/g

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

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.