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 - 33742 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: 26
  • Position: #3450 / 7447
  • Number of attempts: 3
V to the i - 4818 entries

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

  • Best score: 7
  • Best player score: 9
  • Position: #1625 / 1898
  • Number of attempts: 1
Just the middle - 11495 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1847 / 4213
  • Number of attempts: 3
Basic renumbering - 5683 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 24
  • Position: #1117 / 1269
  • Number of attempts: 1
Vice versa - 7953 entries

Little role switching.

  • Best score: 12
  • Best player score: 17
  • Position: #1493 / 2140
  • Number of attempts: 1
Collect List - 4308 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 16
  • Position: #795 / 1192
  • Number of attempts: 2
I forgot quotes - 16038 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1612 / 4192
  • Number of attempts: 5
A HAPPY NEW YEAR 2014 ! - 10688 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #816 / 3691
  • Number of attempts: 2
abcd > a b c d - 297 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Position: #156 / 226
  • Number of attempts: 1
Reverse and count - 480 entries

Someone typed things upside down and now a Vim ninja needs to reverse the lines and count how many there are.

  • Best score: 18
  • Best player score: 30
  • Position: #121 / 178
  • Number of attempts: 1
Simple text editing with Vim - 13013 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 15
  • Position: #2124 / 3744
  • Number of attempts: 1
Sid Momin
Twitter:

graphy

entered into 11 challenges

contributed 0 challenges