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 - 1737 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: #66 / 290
  • Number of attempts: 4
Paste a column after a column - 2662 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 / 576
  • Number of attempts: 10
delete swap - 1834 entries

delete all swap

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

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

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

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 13
  • Position: #85 / 657
  • Number of attempts: 7
Shebangs for all - 2062 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: #167 / 525
  • Number of attempts: 6
The Cake is a Lie - 1389 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 11
  • Position: #474 / 538
  • Number of attempts: 3
Reverse characters in a line - 806 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: #94 / 271
  • Number of attempts: 3
Simple text editing with Vim - 13419 entries

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

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

entered into 9 challenges

contributed 0 challenges