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

New teacher - 1513 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 20
  • Position: #39 / 318
  • Number of attempts: 14
months to html list items - 1146 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 24
  • Position: #96 / 310
  • Number of attempts: 9
Quicksort - 2113 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: 7
  • Position: #173 / 472
  • Number of attempts: 12
Populate 3D bone names list - 656 entries

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

  • Best score: 21
  • Best player score: 21
  • Position: #34 / 169
  • Number of attempts: 4
Remove line numbers - 784 entries

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

  • Best score: 8
  • Best player score: 17
  • Position: #131 / 208
  • Number of attempts: 2
Find fix point of cos - 1485 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: 15
  • Position: #236 / 434
  • Number of attempts: 2
Paste a column after a column - 2668 entries

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

  • Best score: 14
  • Best player score: 16
  • Position: #197 / 578
  • Number of attempts: 7
Tabbed Table to Python Array - 773 entries

Not payed by the hour? So make it fast ;-) The table contains the relative occurencies of bigrams (two consecutive letters) in 1/100,000 in the german language, copy-pasted from http://www.mathe.tu-freiberg.de/~hebisch/cafe/kryptographie/bigramme.html

  • Best score: 50
  • Best player score: 50
  • Position: #6 / 185
  • Number of attempts: 1
Substraction (bis) - 638 entries

Solve the equations (adapted from the original @Caek_'s challenge).

  • Best score: 21
  • Best player score: 155
  • Position: #108 / 117
  • Number of attempts: 1
Many duplicates - 1484 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #296 / 483
  • Number of attempts: 3
delete swap - 1884 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #346 / 578
  • Number of attempts: 9
Fix the shell script! - 2681 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 41
  • Position: #438 / 624
  • Number of attempts: 4
Learn to ask for :help - 596 entries

Learn to use the help to reduce your strokes...

  • Best score: 19
  • Best player score: 30
  • Position: #65 / 132
  • Number of attempts: 7
Rural Post - 4596 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 10
  • Position: #485 / 1122
  • Number of attempts: 5
nerfed
Github:

entered into 14 challenges

contributed 0 challenges