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

Paste a column after a column - 1136 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 14
  • Position: #13 / 242
  • Number of attempts: 7
HS exam question - 1149 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 77
  • Position: #188 / 312
  • Number of attempts: 2
Many duplicates - 854 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #190 / 288
  • Number of attempts: 3
Modernise code - 1103 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 49
  • Position: #183 / 261
  • Number of attempts: 2
Replace pattern with 1, 2, 3, ... on each line - 1054 entries

For each line replace a search pattern (in this case $) with numbers starting at 1 and then increasing by 1 for each replaced match. a$b$c$ -> a0b1c2

  • Best score: 21
  • Best player score: 21
  • Position: #44 / 214
  • Number of attempts: 5
d44d3w
Twitter:

entered into 5 challenges

contributed 0 challenges