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

Paste a column after a column - 2262 entries

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

  • Best score: 14
  • Best player score: 17
  • Position: #183 / 491
  • Number of attempts: 4
Filter number combinations that don't add to 11 - 376 entries

Append the sum of each line to its end, alongside an equals sign, and remove any that do not sum to 11. The ordering of lines should stay the same. Note that the combinations are semi-arbitrary and not all 4-number combinations are present in the file.

  • Best score: 27
  • Best player score: 28
  • Position: #52 / 110
  • Number of attempts: 3
Tabbed Table to Python Array - 644 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: 56
  • Position: #47 / 167
  • Number of attempts: 4
HS exam question - 1510 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 68
  • Position: #174 / 397
  • Number of attempts: 2
Reformat symbols in list - 1472 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 27
  • Position: #146 / 324
  • Number of attempts: 3
delete swap - 1534 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #221 / 482
  • Number of attempts: 2
Lowercase first characters - 467 entries

This is the (abridged) input for Day 3 in Advent of Code 2019. The output is a format more suitable for Prolog programming: the two lines of input become two lists of pairs, joined together in a wires functor.

  • Best score: 33
  • Best player score: 39
  • Position: #87 / 175
  • Number of attempts: 3
Put a cross in the square - 203 entries

Put a cross in the square

  • Best score: 20
  • Best player score: 24
  • Position: #70 / 84
  • Number of attempts: 1
Aliasf
Twitter:

entered into 8 challenges

contributed 0 challenges