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

V to the i - 4883 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 8
  • Position: #888 / 1914
  • Number of attempts: 2
Wrap the text of an email message to 79 characters - 868 entries

You're replying to an email with silly long lines. Clean them up.

  • Best score: 5
  • Best player score: 5
  • Position: #205 / 451
  • Number of attempts: 2
Extract argument from function - 2427 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 17
  • Position: #602 / 772
  • Number of attempts: 1
Search and Replace 0 - 5159 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #348 / 1674
  • Number of attempts: 5
Mute the second method of this script - 463 entries

prepend a # infront of every line of the second method

  • Best score: 8
  • Best player score: 9
  • Position: #4 / 244
  • Number of attempts: 2
vim1001 - 327 entries

change number 1001 into a "vim1001 sequence". (My first challenge, hope it is not too bad... )

  • Best score: 17
  • Best player score: 23
  • Position: #48 / 112
  • Number of attempts: 1
-a-b-c- - 3241 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Position: #17 / 1146
  • Number of attempts: 5
Count both ways - 1052 entries

Right AND down.

  • Best score: 13
  • Best player score: 16
  • Position: #151 / 361
  • Number of attempts: 1
Change name of a variable - 196 entries

Replace the name of the $variable with the fastest move possible. The challenge is having a command that allow you to easily change the variable name even if its indented.

  • Best score: 9
  • Best player score: 9
  • Position: #70 / 147
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10755 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #1903 / 3715
  • Number of attempts: 2
Words in parens - 13053 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2168 / 3991
  • Number of attempts: 1
paste indent correction - JS - 124 entries

You copy some javascript code from a website and paste it into vim, it does not look good!

  • Best score: 16
  • Best player score: 16
  • Position: #32 / 62
  • Number of attempts: 1
abcd > a b c d - 308 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Position: #141 / 231
  • Number of attempts: 1
switch variable - 5128 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Position: #1382 / 1764
  • Number of attempts: 1
The meaning - 588 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #237 / 368
  • Number of attempts: 1
Shebangs for all - 2101 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 17
  • Position: #364 / 532
  • Number of attempts: 2
The Cake is a Lie - 1416 entries

Correct the capitalization of each word

  • Best score: 8
  • Best player score: 9
  • Position: #192 / 542
  • Number of attempts: 3
Simple text editing with Vim - 13626 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1384 / 3902
  • Number of attempts: 2
Kristof
Twitter:

software engineer, vim fan, mechanical keyboards, retro computing, c64, chess

entered into 18 challenges

contributed 0 challenges