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

Simple, Practical, and Common - 33801 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 24
  • Position: #2895 / 7459
  • Number of attempts: 8
One number per line - 18811 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #217 / 3883
  • Number of attempts: 12
V to the i - 4826 entries

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

  • Best score: 7
  • Best player score: 16
  • Position: #1879 / 1900
  • Number of attempts: 1
Every other line - 2922 entries

AaAaAaA

  • Best score: 12
  • Best player score: 13
  • Position: #153 / 706
  • Number of attempts: 8
Just the middle - 11523 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 10
  • Position: #3781 / 4222
  • Number of attempts: 6
Fiddle percentages into real numbers - 873 entries

Get rid of the '%' symbols and shift the decimal place. This is the easier version - all the columns line up.

  • Best score: 13
  • Best player score: 13
  • Position: #16 / 294
  • Number of attempts: 3
replace 2nd column blanks with values in same column if blank - 242 entries

Where ,SOMELOGB and ,SOMELOGC replaces each /r carriage return if 2nd column is blank. The replace only happens if 2nd column is blank though and should replace up to the non blank row.

  • Best score: 15
  • Best player score: 15
  • Position: #4 / 83
  • Number of attempts: 7
C Reformatting - 690 entries

You may use Visual mode... or not. #uppercase

  • Best score: 30
  • Best player score: 68
  • Position: #137 / 163
  • Number of attempts: 1
Paragraph sort - 450 entries

My large herbivorous mammals, Vim commands, and POSIX utilities need to be sorted separately.

  • Best score: 14
  • Best player score: 19
  • Position: #98 / 125
  • Number of attempts: 8
Paragraph breaks - 527 entries

Swap the blank lines and the aaa lines.

  • Best score: 10
  • Best player score: 14
  • Position: #138 / 168
  • Number of attempts: 3
Don't know what this is - 2024 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 37
  • Position: #583 / 586
  • Number of attempts: 1
Words in parens - 12980 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 20
  • Position: #3274 / 3972
  • Number of attempts: 5
switch variable - 5089 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Position: #1385 / 1751
  • Number of attempts: 1
Christian Guenter
Twitter:

entered into 13 challenges

contributed 0 challenges