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

Instance creation in Verilog - 34 entries

Creating an instance of a module is a very frequent task in Verilog. Let's see how efficiently can it be done

  • Best score: 107
  • Best player score: 197
  • Position: #8 / 8
  • Number of attempts: 1
Quicksort - 1631 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: 70
  • Position: #345 / 363
  • Number of attempts: 2
Tic-Tac-Toe Grid Transformation - 326 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: 56
  • Best player score: 149
  • Position: #53 / 79
  • Number of attempts: 1
Pick and sort servers from mirror list - 362 entries

Retrieve the primary server for each country from a mirror list file and organize them alphabetically by country name. Given a mirror list file containing server information for various countries, the objective is to extract the primary server from each country and then arrange these servers in alphabetical order based on the respective country names.

  • Best score: 28
  • Best player score: 50
  • Position: #61 / 78
  • Number of attempts: 1
Populate 3D bone names list - 475 entries

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

  • Best score: 21
  • Best player score: 32
  • Position: #84 / 130
  • Number of attempts: 1
Remove line numbers - 598 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: 48
  • Position: #141 / 159
  • Number of attempts: 1
Find fix point of cos - 1160 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: 14
  • Position: #29 / 351
  • Number of attempts: 3
Easier Align - 357 entries

Align the columns of a markdown table

  • Best score: 51
  • Best player score: 294
  • Position: #69 / 92
  • Number of attempts: 1
Paste a column after a column - 2314 entries

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

  • Best score: 14
  • Best player score: 18
  • Position: #235 / 501
  • Number of attempts: 2
Filter number combinations that don't add to 11 - 378 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: #38 / 112
  • Number of attempts: 4
Fizzbuzz - 511 entries

type the first 100 lines of the fizzbuzz problem

  • Best score: 45
  • Best player score: 86
  • Position: #101 / 157
  • Number of attempts: 1
Dyson
Twitter2:

entered into 11 challenges

contributed 0 challenges