Jeff Roberts
RHCE #804006066322833
Vim-Fu is now iPhone and Android friendly

Check out the Vim-Fu Store!

Vim-Fu

the ball command

Quite often I’ll open up several different file in the vim buffer to be edited.

~$ vim `grep -l v1.2r5 *.pl`

Commands like that can save you a lot of time searching through files looking for a single value or word.

How many files did that load into Vim’s buffer?  Check with:

:ls

Let’s say grep found three files and you want to view them all on the screen at the same time.  The :ball command is your friend.

:ball

This will split the screen horizontally, once for each file in the buffer (Check this post to learn more about working within split screens in Vim.)

This offers a very fast way to get all of the files in your buffer on the screen at once.

2 comments to the ball command

Leave a Reply

 

 

 

You can use these HTML tags

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>