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

Rearrange array to single level - 1649 entries

The goal is to flatten the array into a single list and remove any empty elements.

  • Best score: 14
  • Best player score: 19
  • Position: #63 / 272
  • Number of attempts: 4
Paste a column after a column - 2632 entries

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

  • Best score: 14
  • Best player score: 14
  • Position: #104 / 570
  • Number of attempts: 10
delete swap - 1818 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #361 / 567
  • Number of attempts: 3
Search and Replace 0 - 5031 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #733 / 1638
  • Number of attempts: 4
Numbering a List - 1940 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 13
  • Position: #85 / 656
  • Number of attempts: 7
Shebangs for all - 2049 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 12
  • Position: #165 / 523
  • Number of attempts: 6
The Cake is a Lie - 1386 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 11
  • Position: #473 / 537
  • Number of attempts: 3
Reverse characters in a line - 789 entries

You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.

  • Best score: 12
  • Best player score: 13
  • Position: #92 / 269
  • Number of attempts: 3
Simple text editing with Vim - 13273 entries

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

  • Best score: 13
  • Best player score: 25
  • Position: #3249 / 3811
  • Number of attempts: 1
Colonelviied
Github:

entered into 9 challenges

contributed 0 challenges