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

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

  • Best score: 14
  • Best player score: 16
  • Position: #105 / 453
  • Number of attempts: 3
Filter number combinations that don't add to 11 - 348 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: 30
  • Position: #84 / 104
  • Number of attempts: 3
Tabbed Table to Python Array - 604 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: 73
  • Position: #130 / 158
  • Number of attempts: 1
simple replacements - 1512 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 25
  • Position: #211 / 331
  • Number of attempts: 2
Inverting Lines - 1774 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 10
  • Position: #29 / 481
  • Number of attempts: 4
CSV to MD format - 378 entries

To convert a CSV list to Markdown list

  • Best score: 36
  • Best player score: 40
  • Position: #16 / 87
  • Number of attempts: 4
Python dataclasses - 972 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 32
  • Position: #172 / 247
  • Number of attempts: 2
Modernise code - 1316 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 53
  • Position: #229 / 304
  • Number of attempts: 1
HS Final exam vimgolf - 862 entries

Change the initial file to a single line containing all names comma-separated with numbers inside parentheses.

  • Best score: 21
  • Best player score: 41
  • Position: #187 / 225
  • Number of attempts: 1
Rural Post - 4350 entries

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

  • Best score: 9
  • Best player score: 13
  • Position: #608 / 1065
  • Number of attempts: 2
Simple, Practical, and Common - 33343 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 30
  • Position: #5198 / 7356
  • Number of attempts: 2
Swap values inside brackets - 2464 entries

Easy challenge.

  • Best score: 14
  • Best player score: 16
  • Position: #234 / 569
  • Number of attempts: 4
sort python functions and methods alphabetically - 22 entries

* sort functions in the python file alphabetically * sort functions within a Class alphabetically * sort Classes alphabetically

  • Best score: 20
  • Best player score: 26
  • Position: #12 / 13
  • Number of attempts: 1
Words in parens - 12848 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 17
  • Position: #2696 / 3943
  • Number of attempts: 2
foobarbazqux12345
Twitter:

entered into 14 challenges

contributed 0 challenges