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 - 1634 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: 42
  • Position: #323 / 363
  • Number of attempts: 2
EDN reformat - 1069 entries

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

  • Best score: 17
  • Best player score: 70
  • Position: #142 / 150
  • 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: 57
  • Position: #65 / 78
  • Number of attempts: 3
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: 35
  • Position: #98 / 130
  • Number of attempts: 2
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: 13
  • Position: #79 / 159
  • Number of attempts: 8
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: 83
  • Position: #339 / 351
  • Number of attempts: 2
Insert column data on Confluence-style table - 437 entries

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

  • Best score: 33
  • Best player score: 53
  • Position: #65 / 102
  • Number of attempts: 8
Easier Align - 357 entries

Align the columns of a markdown table

  • Best score: 51
  • Best player score: 455
  • Position: #83 / 92
  • Number of attempts: 1
Paste a column after a column - 2324 entries

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

  • Best score: 14
  • Best player score: 17
  • Position: #202 / 502
  • Number of attempts: 10
Poorly indented Python comments - 1217 entries

Fix the alignment of some Python comments as quickly as possible.

  • Best score: 15
  • Best player score: 43
  • Position: #149 / 206
  • Number of attempts: 6
delete swap - 1578 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #308 / 495
  • Number of attempts: 3
hello-world-vimgolf - 2402 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #308 / 681
  • Number of attempts: 5
Python dataclasses - 1120 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 20
  • Position: #109 / 280
  • Number of attempts: 15
Matt Shen
Github:

entered into 13 challenges

contributed 0 challenges