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 - 1430 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: #54 / 234
  • Number of attempts: 4
Paste a column after a column - 2557 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 / 558
  • Number of attempts: 10
delete swap - 1788 entries

delete all swap

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

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

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

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 13
  • Position: #85 / 654
  • Number of attempts: 7
Shebangs for all - 2018 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: #163 / 519
  • Number of attempts: 6
The Cake is a Lie - 1365 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 11
  • Position: #469 / 532
  • Number of attempts: 3
Reverse characters in a line - 778 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 / 268
  • Number of attempts: 3
Simple text editing with Vim - 13017 entries

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

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

entered into 9 challenges

contributed 0 challenges