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 - 33240 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: 22
  • Position: #100 / 7331
  • Number of attempts: 7
One number per line - 18559 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Position: #1116 / 3830
  • Number of attempts: 5
V to the i - 4717 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #450 / 1874
  • Number of attempts: 3
Just the middle - 11318 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #412 / 4152
  • Number of attempts: 3
Format java properties - 71 entries

Format java properties to a different format. The value which is the string following the first '=' cannot & should not change. All periods in the key get replaced with an underscore "_" and get a prefix of "b_".

  • Best score: 27
  • Best player score: 32
  • Position: #14 / 32
  • Number of attempts: 1
Basic renumbering - 5519 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 18
  • Position: #639 / 1250
  • Number of attempts: 2
Adam's challenge - 932 entries

Change both normal to bold and 4 by 2. Adam Wathan challenge this on twitter . He did it in 11 keystrokes on Sublime.

  • Best score: 18
  • Best player score: 21
  • Position: #133 / 262
  • Number of attempts: 1
Vice versa - 7687 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #45 / 2079
  • Number of attempts: 4
Sudoku table - 61 entries

Make this simple sudoku table look nice and legible.

  • Best score: 48
  • Best player score: 49
  • Position: #5 / 29
  • Number of attempts: 2
Restore order to the alphabet - 184 entries

The numbers are OK. The letters are wonky.

  • Best score: 12
  • Best player score: 13
  • Position: #30 / 67
  • Number of attempts: 3
Collect List - 4228 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Position: #83 / 1179
  • Number of attempts: 6
Condensed Cases - 777 entries

Apple's new programming language, Swift, allows two style of case statements: 1) one Enum case on each line, or 2) multiple Enum cases on a single line. Convert the following from the first case (no pun intended) to the second type.

  • Best score: 12
  • Best player score: 13
  • Position: #90 / 240
  • Number of attempts: 3
PL
Twitter:

entered into 12 challenges

contributed 0 challenges