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

Reordering properties - 1136 entries

Arrange the CSS lines for the #topbar selector based on their complete line length, from shortest to longest.

  • Best score: 24
  • Best player score: 31
  • Position: #18 / 269
  • Number of attempts: 15
Changing date formats - 687 entries

Change the date format to Y/M/D.

  • Best score: 37
  • Best player score: 104
  • Position: #133 / 188
  • Number of attempts: 4
Change to ascending order - 487 entries

Change each line of numbers consistently from descending to ascending order.

  • Best score: 17
  • Best player score: 42
  • Position: #49 / 120
  • Number of attempts: 3
Hex to binary - 120 entries

Convert hexadecimal numbers into binary format.

  • Best score: 29
  • Best player score: 43
  • Position: #16 / 23
  • Number of attempts: 2
Evil Numbers - 115 entries

Print the first 100 evil numbers https://oeis.org/A001969. This is an advert for code.golf https://code.golf/evil-numbers#viml

  • Best score: 25
  • Best player score: 99
  • Position: #20 / 27
  • Number of attempts: 2
months to html list items - 1130 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 22
  • Position: #8 / 306
  • Number of attempts: 7
Quicksort - 2095 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: #56 / 465
  • Number of attempts: 6
EDN reformat - 1209 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #9 / 170
  • Number of attempts: 5
Tic-Tac-Toe Grid Transformation - 449 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: 58
  • Position: #16 / 87
  • Number of attempts: 11
Remove line numbers - 778 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: 12
  • Position: #44 / 205
  • Number of attempts: 5
Find fix point of cos - 1468 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: #52 / 431
  • Number of attempts: 8
Paste a column after a column - 2662 entries

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

  • Best score: 14
  • Best player score: 14
  • Position: #83 / 576
  • Number of attempts: 10
HS exam question - 1610 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 47
  • Position: #17 / 420
  • Number of attempts: 15
Reformat symbols in list - 1649 entries

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

  • Best score: 24
  • Best player score: 24
  • Position: #58 / 355
  • Number of attempts: 7
Fix the shell script! - 2663 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 27
  • Position: #121 / 619
  • Number of attempts: 10
hello-world-vimgolf - 2523 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #303 / 722
  • Number of attempts: 4
Fill in the chess board - 979 entries

Fill in the name of each square using its file (a-h) and rank (1-8).

  • Best score: 19
  • Best player score: 19
  • Position: #34 / 186
  • Number of attempts: 11
Line under headers - 2087 entries

Put a line under each header, and remove the other markdown formatting.

  • Best score: 24
  • Best player score: 24
  • Position: #18 / 513
  • Number of attempts: 9
Exchanging Quotes - 864 entries

Sometimes you need to exchange a choice of quotes in some code.

  • Best score: 30
  • Best player score: 30
  • Position: #14 / 232
  • Number of attempts: 10
Switch function arguments - 2188 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 11
  • Position: #192 / 676
  • Number of attempts: 7
Reverse and double space - 500 entries

Reverse the order of the given lines and double space everything

  • Best score: 14
  • Best player score: 15
  • Position: #87 / 199
  • Number of attempts: 6
jeffreymrussell
Github:

entered into 21 challenges

contributed 0 challenges