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 513b1dcd2d1ae10002000010

Sort the VimGolf challenges by popularity

"Sort by popularity" is a good order to play the challenges. Not perfect, but you could do a lot worse. ;) Input is a sample copy-pasted from vimgolf.com. Some of the challenge names have digits that will get in your way, so read ":help :sort" for hints on sorting with a regex. When you're done, try your solution on the full list!

Start file
replacing each line of a block selection - 809 entries

replace each line's ../assets/js with /javascripts
switch variable - 1197 entries

how fast can you switch two variable ?
Numbering a List - 914 entries

Pretty simple, number the list.
Context Insensitive completion 1 - 304 entries

Finish writing this simple Python HTTP server.
Search and Replace 0 - 1442 entries

Replace every instance of 'aaa' with 'xaaax'.
Wrap the text of an email message to 79 characters - 351 entries

You're replying to an email with silly long lines. Clean them up.
Sort and add attributes - 754 entries

Sort the states and add the attribute country to each record.
Whitespace, empty lines and tabs - 1470 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.
Simple text editing with Vim - 3405 entries

Make the pairs of lines match up by making each second line same as first
Reformat/Refactor a Golfer Class - 2803 entries

A simple case of removing unneeded code and fixing broken indentation.
End file
Simple text editing with Vim - 3405 entries
Reformat/Refactor a Golfer Class - 2803 entries
Whitespace, empty lines and tabs - 1470 entries
Search and Replace 0 - 1442 entries
switch variable - 1197 entries
Numbering a List - 914 entries
replacing each line of a block selection - 809 entries
Sort and add attributes - 754 entries
Wrap the text of an email message to 79 characters - 351 entries
Context Insensitive completion 1 - 304 entries

View Diff

1,3c1,4
< replacing each line of a block selection - 809 entries
< 
< replace each line's ../assets/js with /javascripts
---
> Simple text editing with Vim - 3405 entries
> Reformat/Refactor a Golfer Class - 2803 entries
> Whitespace, empty lines and tabs - 1470 entries
> Search and Replace 0 - 1442 entries
5,9d5
< 
< how fast can you switch two variable ?
< Make it more readable - 741 entries
< 
< Insert blank lines to make it more organized and readable
11,18c7
< 
< Pretty simple, number the list.
< Search and Replace 0 - 1442 entries
< 
< Replace every instance of 'aaa' with 'xaaax'.
< Reconstruct the Sentence - 713 entries
< 
< Get the sentence back in the proper order, remove duplicate lines, and then combine the separate lines into one.
---
> replacing each line of a block selection - 809 entries
20,30c9,10
< 
< Sort the states and add the attribute country to each record.
< Whitespace, empty lines and tabs - 1470 entries
< 
< Convert tabs to spaces, strip empty lines and trailing whitespace.
< Simple text editing with Vim - 3405 entries
< 
< Make the pairs of lines match up by making each second line same as first
< Reformat/Refactor a Golfer Class - 2803 entries
< 
< A simple case of removing unneeded code and fixing broken indentation.
---
> Make it more readable - 741 entries
> Reconstruct the Sentence - 713 entries

Solutions by @YannMoisan:

Unlock 8 remaining solutions by signing in and submitting your own entry
Created by: @udioica

107 active golfers, 348 entries

Solutions by @YannMoisan:
15
#17 - Yann Moisan / @YannMoisan

01/05/2014 at 10:12PM

16
#>49 - Yann Moisan / @YannMoisan

01/05/2014 at 10:11PM

18
#>81 - Yann Moisan / @YannMoisan

01/05/2014 at 10:09PM

20
#>92 - Yann Moisan / @YannMoisan

01/05/2014 at 10:08PM

21
#>94 - Yann Moisan / @YannMoisan

01/05/2014 at 10:07PM

25
#>98 - Yann Moisan / @YannMoisan

01/05/2014 at 10:07PM

28
#>100 - Yann Moisan / @YannMoisan

01/05/2014 at 09:52PM

29
#>101 - Yann Moisan / @YannMoisan

01/05/2014 at 09:51PM