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 - 1562 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: #152 / 345
  • Number of attempts: 2
EDN reformat - 1055 entries

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

  • Best score: 17
  • Best player score: 57
  • Position: #131 / 147
  • Number of attempts: 1
Populate 3D bone names list - 459 entries

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

  • Best score: 21
  • Best player score: 22
  • Position: #35 / 122
  • Number of attempts: 6
Remove line numbers - 551 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #59 / 148
  • Number of attempts: 3
Surround the 'z' character with brackets, quotes, and print as formatted string. - 488 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #139 / 273
  • Number of attempts: 1
Easier Align - 350 entries

Align the columns of a markdown table

  • Best score: 51
  • Best player score: 320
  • Position: #73 / 91
  • Number of attempts: 1
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: 14
  • Position: #62 / 491
  • Number of attempts: 7
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: 62
  • Position: #95 / 167
  • Number of attempts: 1
HS exam question - 1510 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 84
  • Position: #270 / 397
  • Number of attempts: 4
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: #151 / 324
  • Number of attempts: 5
Matthew Finlayson
Twitter:

First year PhD at @nlp_usc | Former predoc at @allen_ai on @ai2_aristo | Harvard 2021 CS & Linguistics

entered into 10 challenges

contributed 0 challenges