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 - 515 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: #76 / 139
  • Number of attempts: 3
EDN reformat - 347 entries

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

  • Best score: 17
  • Best player score: 18
  • Position: #19 / 68
  • Number of attempts: 9
Tic-Tac-Toe Grid Transformation - 134 entries

Your mission is to efficiently convert the original Tic-Tac-Toe grid, represented by 'x's and 'o's, into a neat and well-organized game board.

  • Best score: 58
  • Best player score: 70
  • Position: #9 / 38
  • Number of attempts: 4
Populate 3D bone names list - 235 entries

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

  • Best score: 21
  • Best player score: 21
  • Position: #14 / 64
  • Number of attempts: 3
Remove line numbers - 266 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: 13
  • Position: #47 / 79
  • Number of attempts: 3
Find fix point of cos - 798 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: #140 / 232
  • Number of attempts: 1
Insert column data on Confluence-style table - 343 entries

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

  • Best score: 33
  • Best player score: 35
  • Position: #22 / 79
  • Number of attempts: 5
Surround the 'z' character with brackets, quotes, and print as formatted string. - 393 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #151 / 211
  • Number of attempts: 2
Paste a column after a column - 1887 entries

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

  • Best score: 14
  • Best player score: 14
  • Position: #74 / 407
  • Number of attempts: 13
Filter number combinations that don't add to 11 - 316 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: 12
  • Best player score: 27
  • Position: #33 / 97
  • Number of attempts: 4
Tabbed Table to Python Array - 564 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: #50 / 150
  • Number of attempts: 3
Opus28
Github:

entered into 11 challenges

contributed 0 challenges