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 [challenge ID]

Played Challenges

Words in parens - 12788 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #161 / 3930
  • Number of attempts: 3
replacing each line of a block selection - 2883 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 18
  • Position: #24 / 756
  • Number of attempts: 4
Reverse and double space - 471 entries

Reverse the order of the given lines and double space everything

  • Best score: 14
  • Best player score: 14
  • Position: #10 / 190
  • Number of attempts: 2
Remove noise from HTTP log - 668 entries

This piece of log (from the year 2000) contains some irrelevant data. We only want to see the HTTP method and resource.

  • Best score: 15
  • Best player score: 15
  • Position: #82 / 264
  • Number of attempts: 2
switch variable - 4993 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #101 / 1722
  • Number of attempts: 3
The meaning - 538 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #65 / 346
  • Number of attempts: 2
Make it more readable - 1928 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 14
  • Position: #138 / 635
  • Number of attempts: 4
Generate English Alphabets - 451 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 25
  • Position: #111 / 197
  • Number of attempts: 2
A Simple One - 971 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #264 / 632
  • Number of attempts: 2
Simple text editing with Vim - 11862 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1109 / 3471
  • Number of attempts: 2
kurban
Twitter:

entered into 10 challenges

contributed 0 challenges