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

Hex to binary - 78 entries

Convert hexadecimal numbers into binary format.

  • Best score: 29
  • Best player score: 44
  • Position: #13 / 17
  • Number of attempts: 3
months to html list items - 957 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 25
  • Position: #113 / 254
  • Number of attempts: 4
Quicksort - 1875 entries

We need the numbers in the first row sorted as quickly as possible! Be careful not to disturb the data below the divider though: that must remain unchanged.

  • Best score: 6
  • Best player score: 24
  • Position: #236 / 411
  • Number of attempts: 3
Paste a column after a column - 2504 entries

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

  • Best score: 14
  • Best player score: 19
  • Position: #282 / 547
  • Number of attempts: 6
Poorly indented Python comments - 1313 entries

Fix the alignment of some Python comments as quickly as possible.

  • Best score: 15
  • Best player score: 30
  • Position: #121 / 220
  • Number of attempts: 5
delete swap - 1768 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #345 / 548
  • Number of attempts: 5
Put a newline after every 10 lines in vim - 1656 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 12
  • Position: #244 / 555
  • Number of attempts: 3
hello-world-vimgolf - 2490 entries

Simple number generation

  • Best score: 10
  • Best player score: 34
  • Position: #667 / 705
  • Number of attempts: 1
Search and Replace 0 - 4964 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #726 / 1617
  • Number of attempts: 4
Reformat/Refactor a Golfer Class - 6866 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 28
  • Best player score: 39
  • Position: #766 / 1681
  • Number of attempts: 5
TobSick
Github:

entered into 10 challenges

contributed 0 challenges