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 - 4848 entries

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

  • Best score: 7
  • Best player score: 9
  • Position: #1602 / 1907
  • Number of attempts: 1
Extract argument from function - 2392 entries

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

  • Best score: 13
  • Best player score: 15
  • Position: #442 / 765
  • Number of attempts: 1
Just the middle - 11572 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1814 / 4240
  • Number of attempts: 2
Interleave lines - 208 entries

This is some kind of « paste -d'\n' c b a ». There are many ways to achieve this.. just find the shortest!

  • Best score: 17
  • Best player score: 30
  • Position: #36 / 61
  • Number of attempts: 3
Logging with key - 342 entries

Sometimes it is better to log with meaningful key

  • Best score: 21
  • Best player score: 39
  • Position: #79 / 89
  • Number of attempts: 1
Gray area - 754 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 13
  • Position: #173 / 273
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10743 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2744 / 3710
  • Number of attempts: 1
Words in parens - 13024 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2240 / 3983
  • Number of attempts: 1
switch variable - 5110 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #863 / 1758
  • Number of attempts: 2
Make it more readable - 2028 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 17
  • Position: #479 / 656
  • Number of attempts: 2
Cosmin Banu
Twitter:

entered into 10 challenges

contributed 0 challenges