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

Vice versa - 7165 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 7
switch variable - 4777 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 4
Swap values - 4300 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 6
replace 2nd column blanks with values in same column if blank - 200 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
  • Number of attempts: 4
Just the middle - 10823 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 4
I forgot quotes - 15138 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 8
Start coding format - 128 entries

I used to start coding with following format: int main(){ -(cursor here) }

  • Best score: 22
  • Best player score: 29
  • Number of attempts: 1
-a-b-c- - 3004 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 17
  • Number of attempts: 1
V to the i - 4508 entries

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

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 3
One number per line - 17465 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 8
From A to B - 533 entries

Mirror and change this text block

  • Best score: 16
  • Best player score: 16
  • Number of attempts: 5
Simple, Practical, and Common - 31709 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: 25
  • Number of attempts: 3
Words in parens - 12378 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 18
  • Number of attempts: 2
Collect List - 4035 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 7
onedayrex
Twitter:

entered into 14 challenges

contributed 0 challenges