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

Quicksort - 1692 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: #183 / 372
  • Number of attempts: 4
Populate 3D bone names list - 490 entries

Ran into this at work, excited to see how this gets optimized

  • Best score: 21
  • Best player score: 21
  • Position: #10 / 135
  • Number of attempts: 6
Remove line numbers - 617 entries

From http://web.archive.org/web/20140831121704/http://dirac.org/linux/gdb/02a-Memory_Layout_And_The_Stack.php#investigatingthestackwithgdb.

  • Best score: 12
  • Best player score: 12
  • Position: #23 / 166
  • Number of attempts: 5
Find fix point of cos - 1169 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 14
  • Position: #39 / 355
  • Number of attempts: 4
Surround the 'z' character with brackets, quotes, and print as formatted string. - 502 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 17
  • Position: #144 / 283
  • Number of attempts: 1
Paste a column after a column - 2367 entries

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

  • Best score: 14
  • Best player score: 16
  • Position: #172 / 514
  • Number of attempts: 3
delete swap - 1614 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #283 / 503
  • Number of attempts: 4
Put a newline after every 10 lines in vim - 1629 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #38 / 543
  • Number of attempts: 4
Wikitext headings to markdown - 984 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 21
  • Position: #68 / 206
  • Number of attempts: 3
hello-world-vimgolf - 2421 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #293 / 688
  • Number of attempts: 2
simple replacements - 1706 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 19
  • Position: #79 / 377
  • Number of attempts: 2
Simple text editing with Vim - 12398 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1942 / 3607
  • Number of attempts: 5
Sergej Karavajnij
Twitter2:

entered into 12 challenges

contributed 0 challenges