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

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

  • Best score: 7
  • Best player score: 9
  • Position: #1562 / 1857
  • Number of attempts: 1
Extract argument from function - 2218 entries

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

  • Best score: 13
  • Best player score: 15
  • Position: #418 / 729
  • Number of attempts: 1
Just the middle - 11141 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1774 / 4114
  • Number of attempts: 2
Interleave lines - 134 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: #30 / 55
  • Number of attempts: 3
Logging with key - 292 entries

Sometimes it is better to log with meaningful key

  • Best score: 21
  • Best player score: 39
  • Position: #75 / 84
  • Number of attempts: 1
Gray area - 707 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 13
  • Position: #166 / 261
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10538 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2685 / 3638
  • Number of attempts: 1
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2198 / 3919
  • Number of attempts: 1
switch variable - 4945 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #840 / 1708
  • Number of attempts: 2
Make it more readable - 1905 entries

Insert blank lines to make it more organized and readable

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

entered into 10 challenges

contributed 0 challenges