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

Truth Table to ModelSim - 41 entries

Convert this truth table to simulator instructions!

  • Best score: 64
  • Best player score: 85
  • Position: #7 / 14
  • Number of attempts: 3
Replace word while reserving first letter case - 425 entries

Window -> Door window -> door Windows -> Windows windows -> windows

  • Best score: 24
  • Best player score: 25
  • Position: #26 / 98
  • Number of attempts: 7
months to html list items - 752 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 22
  • Position: #23 / 206
  • Number of attempts: 3
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: 146
  • Position: #5 / 8
  • Number of attempts: 3
Quicksort - 1676 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: #26 / 369
  • Number of attempts: 1
Remove line numbers - 617 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: 12
  • Position: #29 / 166
  • Number of attempts: 3
Find fix point of cos - 1169 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: #46 / 355
  • Number of attempts: 2
Surround the 'z' character with brackets, quotes, and print as formatted string. - 501 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #152 / 282
  • Number of attempts: 1
Paste a column after a column - 2367 entries

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

  • Best score: 14
  • Best player score: 14
  • Position: #75 / 514
  • Number of attempts: 5
Reformat symbols in list - 1482 entries

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

  • Best score: 24
  • Best player score: 24
  • Position: #53 / 328
  • Number of attempts: 6
Generate a very basic Python constructor (fixed) - 1214 entries

Original by @BiddulphCaleb (http://www.vimgolf.com/challenges/6019f1c4642668000cee11e8) - had some extra spaces in output file.

  • Best score: 29
  • Best player score: 29
  • Position: #59 / 254
  • Number of attempts: 8
Learn to ask for :help - 571 entries

Learn to use the help to reduce your strokes...

  • Best score: 19
  • Best player score: 21
  • Position: #21 / 127
  • Number of attempts: 4
Plotting some variables in python - 1597 entries

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

  • Best score: 34
  • Best player score: 34
  • Position: #55 / 342
  • Number of attempts: 8
Transpose a python matrix - 847 entries

Rotate the matrix in 90 degrees.

  • Best score: 23
  • Best player score: 34
  • Position: #55 / 135
  • Number of attempts: 3
Migrated to Postgres! - 319 entries

Celebration completion of this project. https://github.com/igrigorik/vimgolf/pull/322

  • Best score: 26
  • Best player score: 29
  • Position: #65 / 124
  • Number of attempts: 4
Count to 100 in word form - 120 entries

Write all the numbers from 1 to 100, using their word forms rather than the digit form. Most of the parts you will need are included in the input file. Use hyphens when appropriate.

  • Best score: 53
  • Best player score: 53
  • Position: #1 / 27
  • Number of attempts: 7
RUST Cargo.toml version to last - 325 entries

RUST Cargo.toml version to last. rusty practice on vimgolf

  • Best score: 16
  • Best player score: 16
  • Position: #24 / 96
  • Number of attempts: 5
Making 3 line function a one liner. - 311 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #166 / 199
  • Number of attempts: 1
Modernise code - 1352 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 34
  • Position: #66 / 313
  • Number of attempts: 3
Staircase - 145 entries

Going downstairs, while singing the alphabet song. Some vb practice to us all. Would it be much easier to make it go from left to right instead?

  • Best score: 21
  • Best player score: 22
  • Position: #9 / 32
  • Number of attempts: 12
Yo To Hello - 1122 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #390 / 520
  • Number of attempts: 1
Simple, Practical, and Common - 33427 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 22
  • Position: #2392 / 7377
  • Number of attempts: 3
Right Align Part of the line - 132 entries

The challenge is to right align a part of the line - this is useful in some SQL queries where it's more clear which are the fields displayed

  • Best score: 19
  • Best player score: 22
  • Position: #32 / 42
  • Number of attempts: 1
Add string initializers to an enum - 865 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 21
  • Position: #73 / 255
  • Number of attempts: 3
Add semicolons - 10809 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #762 / 3050
  • Number of attempts: 2
Box it - 7836 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #451 / 1868
  • Number of attempts: 5
Cool or not? - 802 entries

abc trying to be cool or not...

  • Best score: 15
  • Best player score: 15
  • Position: #70 / 228
  • Number of attempts: 5
Two pairs of cluster of letters creates word - 742 entries

Clean and group.

  • Best score: 17
  • Best player score: 17
  • Position: #59 / 176
  • Number of attempts: 4
comment and uncomment code inline - 1074 entries

It's very useful to be able to comment out a block of code in a quick edit. And likewise to uncomment the code. This operation often involves multi-line stanzas and even large blocks. With just line-wise navigation and insert mode this would cost you about 4 keystrokes per line. Master this hole of VimGolf and you'll quickly drop your key count in day to day Vim as well.

  • Best score: 9
  • Best player score: 9
  • Position: #156 / 316
  • Number of attempts: 2
Make HTML List - 1050 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 46
  • Position: #143 / 273
  • Number of attempts: 1
Text to HTML Table - 171 entries

Turn the plain text table to an HTML table.

  • Best score: 52
  • Best player score: 52
  • Position: #21 / 49
  • Number of attempts: 10
For all cases. - 141 entries

In this case... change it! :) Watch the line.

  • Best score: 8
  • Best player score: 8
  • Position: #88 / 100
  • Number of attempts: 3
Stairstep digits - 381 entries

Remove the evens. Double the odds.

  • Best score: 9
  • Best player score: 13
  • Position: #123 / 142
  • Number of attempts: 5
Simple addition - 310 entries

The right side of the equation is already there. We just need the left one now.

  • Best score: 12
  • Best player score: 12
  • Position: #59 / 117
  • Number of attempts: 2
simple format (3) - 73 entries

reverse two column values!

  • Best score: 34
  • Best player score: 34
  • Position: #7 / 22
  • Number of attempts: 5
Join 'em - 251 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 4
  • Position: #21 / 151
  • Number of attempts: 2
O Christmas Tree - 108 entries

Design a macro that makes trees grow (or ASCII triangles, if that's too hard).

  • Best score: 22
  • Best player score: 22
  • Position: #5 / 42
  • Number of attempts: 6
Simple format (2) - 334 entries

try again!

  • Best score: 23
  • Best player score: 25
  • Position: #28 / 69
  • Number of attempts: 6
Fix the XML - 997 entries

The challenge consists in having a valid xml from an incomplete source.

  • Best score: 18
  • Best player score: 18
  • Position: #62 / 285
  • Number of attempts: 8
Line 'em up! - 395 entries

It can be so hard to keep everything neatly lined-up. Somebody clearly hasn't bothered here. Tidy it up, please!

  • Best score: 17
  • Best player score: 17
  • Position: #39 / 111
  • Number of attempts: 4
Shuffled numbers - 236 entries

Each number is paired with the number it should follow. That's enough information to put them in order.

  • Best score: 15
  • Best player score: 15
  • Position: #40 / 94
  • Number of attempts: 6
Remove hard line breaks - 68 entries

Text files with Hard breaks are not good for e-readers. We need remove all hard line breaks and have long lines.

  • Best score: 10
  • Best player score: 10
  • Position: #10 / 33
  • Number of attempts: 2
Going underground.... - 348 entries

Simple reformatting: in this case changing from the format London underground supplies its customers with, to the format that Google Calendar likes...

  • Best score: 22
  • Best player score: 23
  • Position: #6 / 126
  • Number of attempts: 12
A HAPPY NEW YEAR 2014 ! - 10641 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1600 / 3673
  • Number of attempts: 2
Simple Maths 2 - 35 entries

Time to practice expression register! #maths #linear

  • Best score: 17
  • Best player score: 32
  • Position: #12 / 15
  • Number of attempts: 1
Alphabet soup - 424 entries

Create a column of all alphabet characters organized in a funky way

  • Best score: 25
  • Best player score: 25
  • Position: #18 / 105
  • Number of attempts: 3
MonkieeBoi
Github:

entered into 46 challenges

contributed 0 challenges