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 - 1875 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: 6
  • Position: #5 / 411
  • Number of attempts: 4
EDN reformat - 1133 entries

The goal is to make the code more readable and concise while maintaining its functionality.

  • Best score: 17
  • Best player score: 18
  • Position: #17 / 158
  • Number of attempts: 7
Populate 3D bone names list - 589 entries

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

  • Best score: 21
  • Best player score: 32
  • Position: #99 / 150
  • Number of attempts: 2
Remove line numbers - 694 entries

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

  • Best score: 9
  • Best player score: 26
  • Position: #135 / 189
  • Number of attempts: 1
Find fix point of cos - 1339 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: #76 / 390
  • Number of attempts: 1
Insert column data on Confluence-style table - 445 entries

Add ip addresses into new "IP" column based on the last digits from the "Server" column

  • Best score: 33
  • Best player score: 44
  • Position: #40 / 107
  • Number of attempts: 4
Surround the 'z' character with brackets, quotes, and print as formatted string. - 538 entries

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

  • Best score: 17
  • Best player score: 19
  • Position: #268 / 300
  • Number of attempts: 1
Paste a column after a column - 2504 entries

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

  • Best score: 14
  • Best player score: 14
  • Position: #49 / 547
  • Number of attempts: 7
Filter number combinations that don't add to 11 - 401 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: 27
  • Position: #17 / 114
  • Number of attempts: 7
Tabbed Table to Python Array - 721 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: 53
  • Position: #36 / 178
  • Number of attempts: 9
HS exam question - 1575 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 48
  • Position: #37 / 415
  • Number of attempts: 16
Reformat symbols in list - 1606 entries

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

  • Best score: 24
  • Best player score: 24
  • Position: #43 / 344
  • Number of attempts: 8
Fizzbuzz - 557 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 45
  • Best player score: 47
  • Position: #17 / 166
  • Number of attempts: 10
Substraction (bis) - 584 entries

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

  • Best score: 21
  • Best player score: 22
  • Position: #17 / 111
  • Number of attempts: 7
Changing around text with citations - 327 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 33
  • Position: #34 / 92
  • Number of attempts: 3
erik.forex
Twitter2:

entered into 15 challenges

contributed 0 challenges