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 - 32904 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: #2825 / 7270
  • Number of attempts: 8
One number per line - 18377 entries

Just give me the numbers.

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

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

  • Best score: 7
  • Best player score: 16
  • Position: #1837 / 1856
  • Number of attempts: 1
Every other line - 2829 entries

AaAaAaA

  • Best score: 12
  • Best player score: 13
  • Position: #149 / 686
  • Number of attempts: 8
Just the middle - 11136 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 10
  • Position: #3688 / 4112
  • Number of attempts: 6
Fiddle percentages into real numbers - 795 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 / 271
  • Number of attempts: 3
replace 2nd column blanks with values in same column if blank - 210 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 / 73
  • Number of attempts: 7
C Reformatting - 686 entries

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

  • Best score: 30
  • Best player score: 68
  • Position: #135 / 159
  • Number of attempts: 1
Paragraph sort - 414 entries

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

  • Best score: 14
  • Best player score: 19
  • Position: #93 / 120
  • Number of attempts: 8
Paragraph breaks - 483 entries

Swap the blank lines and the aaa lines.

  • Best score: 10
  • Best player score: 14
  • Position: #131 / 160
  • Number of attempts: 3
Don't know what this is - 1948 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: #568 / 571
  • Number of attempts: 1
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 20
  • Position: #3228 / 3919
  • Number of attempts: 5
switch variable - 4917 entries

how fast can you switch two variable ?

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

entered into 13 challenges

contributed 0 challenges