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

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

  • Best score: 7
  • Best player score: 9
  • Position: #1610 / 1916
  • Number of attempts: 1
Extract argument from function - 2429 entries

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

  • Best score: 13
  • Best player score: 15
  • Position: #447 / 773
  • Number of attempts: 1
Just the middle - 11630 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1819 / 4261
  • Number of attempts: 2
Interleave lines - 210 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: #37 / 63
  • Number of attempts: 3
Logging with key - 343 entries

Sometimes it is better to log with meaningful key

  • Best score: 21
  • Best player score: 39
  • Position: #80 / 90
  • Number of attempts: 1
Gray area - 765 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 13
  • Position: #176 / 277
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10758 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2749 / 3717
  • Number of attempts: 1
Words in parens - 13058 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2247 / 3993
  • Number of attempts: 1
switch variable - 5131 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #867 / 1766
  • Number of attempts: 2
Make it more readable - 2041 entries

Insert blank lines to make it more organized and readable

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

entered into 10 challenges

contributed 0 challenges