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

Copy punctuation - 678 entries

I want to copy the last line’s brackets, quotes, and commas to each line. How?

  • Best score: 19
  • Best player score: 34
  • Position: #73 / 163
  • Number of attempts: 5
Column wise pasting - 256 entries

Make a table from 3 columns

  • Best score: 17
  • Best player score: 42
  • Position: #44 / 53
  • Number of attempts: 3
Deleting text - 325 entries

Delete everything except some specific numbers.

  • Best score: 26
  • Best player score: 47
  • Position: #66 / 101
  • Number of attempts: 1
months to html list items - 1119 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 22
  • Position: #38 / 303
  • Number of attempts: 9
Quicksort - 2077 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: #261 / 462
  • Number of attempts: 3
Remove line numbers - 772 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: 12
  • Position: #71 / 203
  • Number of attempts: 8
Find fix point of cos - 1458 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: #67 / 430
  • Number of attempts: 7
Paste a column after a column - 2653 entries

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

  • Best score: 14
  • Best player score: 14
  • Position: #102 / 574
  • Number of attempts: 8
Tabbed Table to Python Array - 769 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: 66
  • Position: #136 / 184
  • Number of attempts: 3
Many duplicates - 1472 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #301 / 480
  • Number of attempts: 4
Coenraad
Github:

entered into 10 challenges

contributed 0 challenges