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 - 120 entries

Convert hexadecimal numbers into binary format.

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

Turn the months into list items.

  • Best score: 22
  • Best player score: 25
  • Position: #125 / 301
  • Number of attempts: 4
Quicksort - 2061 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: #253 / 458
  • Number of attempts: 3
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: 19
  • Position: #299 / 570
  • Number of attempts: 6
Poorly indented Python comments - 1328 entries

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

  • Best score: 15
  • Best player score: 30
  • Position: #122 / 223
  • Number of attempts: 5
delete swap - 1818 entries

delete all swap

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

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

  • Best score: 10
  • Best player score: 12
  • Position: #247 / 561
  • Number of attempts: 3
hello-world-vimgolf - 2513 entries

Simple number generation

  • Best score: 10
  • Best player score: 34
  • Position: #679 / 717
  • Number of attempts: 1
Search and Replace 0 - 5031 entries

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

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

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

  • Best score: 7
  • Best player score: 39
  • Position: #804 / 1825
  • Number of attempts: 5
TobSick
Github:

entered into 10 challenges

contributed 0 challenges