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

Changing around text with citations - 322 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 38
  • Position: #44 / 88
  • Number of attempts: 5
Many duplicates - 1251 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #178 / 410
  • Number of attempts: 5
2 quick changes and a numbered list - 599 entries

The ascii will not be lost, but rather numbered in 4 digit blocks with leading zeros.

  • Best score: 37
  • Best player score: 37
  • Position: #20 / 145
  • Number of attempts: 11
delete swap - 1522 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #170 / 476
  • Number of attempts: 4
Generate a very basic Python constructor (fixed) - 1172 entries

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

  • Best score: 29
  • Best player score: 38
  • Position: #93 / 245
  • Number of attempts: 2
Fix the shell script! - 2328 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 27
  • Position: #95 / 539
  • Number of attempts: 7
Visual block training - 1001 entries

You see the input. You see the output. Go.

  • Best score: 17
  • Best player score: 19
  • Position: #51 / 183
  • Number of attempts: 12
Plotting some variables in python - 1558 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: 41
  • Position: #130 / 333
  • Number of attempts: 8
Enumerate Bullets - 292 entries

We will need to refer to the bullet points in our document explicitly later, so we need to assign them some ID's!

  • Best score: 20
  • Best player score: 24
  • Position: #40 / 80
  • Number of attempts: 9
swap number pairs - 2011 entries

Swap the numbers in a bunch of 2-element arrays.

  • Best score: 16
  • Best player score: 17
  • Position: #101 / 370
  • Number of attempts: 9
HS Final exam vimgolf - 864 entries

Change the initial file to a single line containing all names comma-separated with numbers inside parentheses.

  • Best score: 21
  • Best player score: 22
  • Position: #77 / 227
  • Number of attempts: 5
Applying same text modification in several lines - 2845 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 12
  • Best player score: 12
  • Position: #19 / 840
  • Number of attempts: 3
Com(m)a Trouble - 3668 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 12
  • Position: #160 / 826
  • Number of attempts: 8
From argument to object - 1474 entries

This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?

  • Best score: 17
  • Best player score: 17
  • Position: #161 / 450
  • Number of attempts: 2
comment and uncomment code inline - 1069 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: #152 / 314
  • Number of attempts: 5
On Being Stylish - 72 entries

Your PR cannot be accepted if you don't follow our corporate style guide.

  • Best score: 33
  • Best player score: 35
  • Position: #11 / 19
  • Number of attempts: 10
Team names - 1805 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 17
  • Position: #323 / 581
  • Number of attempts: 6
Learn some german verbs - 531 entries

The list needs to be structured so we can print in verbatim and feel ok about how it looks.

  • Best score: 21
  • Best player score: 37
  • Position: #118 / 131
  • Number of attempts: 7
Remember VimGolf Rules ! - 257 entries

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 7
  • Position: #40 / 138
  • Number of attempts: 3
sort python functions and methods alphabetically - 22 entries

* sort functions in the python file alphabetically * sort functions within a Class alphabetically * sort Classes alphabetically

  • Best score: 20
  • Best player score: 26
  • Position: #13 / 13
  • Number of attempts: 3
Fiddle percentages into real numbers - 840 entries

Get rid of the '%' symbols and shift the decimal place. This is the easier version - all the columns line up.

  • Best score: 13
  • Best player score: 13
  • Position: #157 / 287
  • Number of attempts: 4
C Reformatting - 688 entries

You may use Visual mode... or not. #uppercase

  • Best score: 30
  • Best player score: 70
  • Position: #141 / 161
  • Number of attempts: 1
Order and join - 956 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 10
  • Position: #78 / 255
  • Number of attempts: 8
Unwrap the text of an email message - 185 entries

Reverse of "Wrap the text of an email message to 79 characters". gq and gw are great for wrapping paragraphs. But sometimes other programs choke on your wrapped lines. What's the best way to un-gq?

  • Best score: 16
  • Best player score: 37
  • Position: #72 / 72
  • Number of attempts: 2
Let's play some Ivmgolf - 1091 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 7
  • Position: #137 / 441
  • Number of attempts: 4
Table Reshuffle - 371 entries

Fix the column order in this table... also append the new 'username' column.

  • Best score: 22
  • Best player score: 38
  • Position: #96 / 134
  • Number of attempts: 2
Another Mixed-Up Haiku - 237 entries

VimGolf ... a perfect evening?

  • Best score: 21
  • Best player score: 27
  • Position: #59 / 85
  • Number of attempts: 2
Reverse Simple Deletion - 832 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 11
  • Position: #55 / 454
  • Number of attempts: 3
Increment, increment, increment.... - 662 entries

Vim likes macros

  • Best score: 10
  • Best player score: 10
  • Position: #56 / 401
  • Number of attempts: 3
The Cake is a Lie - 1286 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 9
  • Position: #275 / 512
  • Number of attempts: 4
Compile C - 365 entries

You might have to get clever to do this one.

  • Best score: 19
  • Best player score: 19
  • Position: #21 / 132
  • Number of attempts: 10
Almost encrypted - 198 entries

Convert the first paragraph to be even less readable.

  • Best score: 5
  • Best player score: 5
  • Position: #124 / 144
  • Number of attempts: 5
Make Fancy Header - 1014 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 16
  • Position: #124 / 338
  • Number of attempts: 6
Mrmclarrinson
Twitter:

entered into 33 challenges

contributed 0 challenges