Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 4d1a34ccfa85f32065000004

Simple text editing with Vim

Make the pairs of lines match up by making each second line same as first

Start file
Make the pairs of lines match up by making each second line same as first:

# Appending text:
The name "Vim" is an acronym for "Vi IMproved"
The name "Vim" is an acronym for

# Editing text:
Vim is a text editor originally released by Bram Moolenaar in 1991 for the Amiga
Trivia: Vim is a text editor released by Bram Moolenaar in 1991 for the Amiga

# Deleting text:
Vim has a vi compatibility mode
Vim has a vi compatibility mode but when not in this mode Vim has many enhancements over vi
End file
Make the pairs of lines match up by making each second line same as first:

# Appending text:
The name "Vim" is an acronym for "Vi IMproved"
The name "Vim" is an acronym for "Vi IMproved"

# Editing text:
Vim is a text editor originally released by Bram Moolenaar in 1991 for the Amiga
Vim is a text editor originally released by Bram Moolenaar in 1991 for the Amiga

# Deleting text:
Vim has a vi compatibility mode
Vim has a vi compatibility mode

View Diff

5c5
< The name "Vim" is an acronym for
---
> The name "Vim" is an acronym for "Vi IMproved"
9c9
< Trivia: Vim is a text editor released by Bram Moolenaar in 1991 for the Amiga
---
> Vim is a text editor originally released by Bram Moolenaar in 1991 for the Amiga
13c13
< Vim has a vi compatibility mode but when not in this mode Vim has many enhancements over vi
---
> Vim has a vi compatibility mode

Solutions

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 2964 remaining solutions by signing in and submitting your own entry
#2965 M. C. / @mczerkawski - Score: 918 - 12/29/10 @ 09:07
k<Down><Down><Down><Right><Right><Right><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right> <Left><Up><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>i<Right> "Vi IMproved"<Down><Down><Down><Down><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Right><Up><Right><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Down><Left><BS><BS><BS><BS><BS><BS><BS><Del><Down><Down><Down><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Right><Down><Esc><Right><Down><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Del><Up><Up><Up><Up><Left><Left><Left><Left><Left><Left><Left><Left><Left>o<BS><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left><Left>i<BS>originally <Right><Right><Right><Right><Esc>:w<CR>:wq<CR>

0 comments


Created by: @igrigorik

2965 active golfers, 10126 entries

Leaderboard (lowest score wins):
14
#571 - Paul King / @nrocy

12/29/2010 at 05:52AM

14
#572 - Kerry Buckley / @kerryb

12/29/2010 at 07:47AM

14
#573 - John Lam / @john_lam

12/29/2010 at 08:57AM

14
#574 - foo bar / @whoever_foo

12/29/2010 at 10:13AM

14
#575 - Marcelo F Andrade / @mfandrade

12/29/2010 at 04:29PM

14
#576 - Austin Taylor / @austintaylor

12/29/2010 at 04:51PM

14
#577 - Utkarsh Kukreti / @utkarshkukreti

12/29/2010 at 05:51PM

14
#578 - Josh Weinberg / @jcweinberg

12/29/2010 at 06:53PM

14
#579 - Henri Bourcereau / @mmai

12/29/2010 at 07:36PM

14
#580 - Tim Dean / @Tmdean

12/29/2010 at 09:48PM

14
#581 - James Wickett / @wickett

12/29/2010 at 10:08PM

14
#582 - Mike Plotz / @antisuji

12/29/2010 at 11:41PM

14
#583 - Jacob Miller / @pwnies

12/29/2010 at 11:48PM

14
#584 - Adam Pohorecki / @apohorecki

12/30/2010 at 12:31AM

14
#585 - Akira Matsuda / @a_matsuda

12/30/2010 at 01:30AM

14
#586 - Ricardo Mendes / @locks

12/30/2010 at 03:29AM

14
#587 - Pierre / @Pihour

12/30/2010 at 05:34AM

14
#588 - Brad / @bjjwillis

12/30/2010 at 07:25AM

14
#589 - Takayuki Tsukitani / @tsukkee

12/30/2010 at 07:33AM

14
#590 -  Ikhsan Maulana / @ixandidu

12/30/2010 at 08:14AM

14
#591 - Benoit D / @Anbcorp

12/30/2010 at 09:20AM

14
#592 - Kornél Lugosi / @Coornail

12/30/2010 at 10:10AM

14
#593 - Stephen Morrow / @yawmark

12/30/2010 at 02:01PM

14
#594 - david ta / @tadavid

12/30/2010 at 02:27PM

14
#595 - YB / @ybudowski

12/30/2010 at 03:14PM

14
#596 - h_east (トロッコ6個) / @h_east

12/30/2010 at 05:18PM

14
#597 - milkypostman / @milkypostman

12/30/2010 at 05:40PM

14
#598 - scott / @SetecAstronomy

12/30/2010 at 05:56PM

14
#599 - Douglas Stockwell / @dstockwell

12/30/2010 at 06:26PM

14
#600 - Danny Dulai / @dannydulai

12/30/2010 at 09:02PM