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 - 324 entries

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 38
  • Position: #45 / 90
  • Number of attempts: 5
Many duplicates - 1350 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #183 / 440
  • Number of attempts: 5
2 quick changes and a numbered list - 615 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 / 148
  • Number of attempts: 11
delete swap - 1650 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #170 / 514
  • Number of attempts: 4
Generate a very basic Python constructor (fixed) - 1231 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: #98 / 260
  • Number of attempts: 2
Fix the shell script! - 2431 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 27
  • Position: #97 / 569
  • Number of attempts: 7
Visual block training - 1047 entries

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

  • Best score: 17
  • Best player score: 19
  • Position: #52 / 195
  • Number of attempts: 12
Plotting some variables in python - 1605 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: #134 / 345
  • Number of attempts: 8
Enumerate Bullets - 309 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: #42 / 83
  • Number of attempts: 9
swap number pairs - 2023 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #103 / 373
  • Number of attempts: 9
HS Final exam vimgolf - 892 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: #80 / 234
  • Number of attempts: 5
Applying same text modification in several lines - 2851 entries

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

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

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

  • Best score: 12
  • Best player score: 12
  • Position: #160 / 839
  • Number of attempts: 8
From argument to object - 1481 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 / 453
  • Number of attempts: 2
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: #152 / 316
  • Number of attempts: 5
On Being Stylish - 73 entries

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

  • Best score: 33
  • Best player score: 35
  • Position: #12 / 20
  • Number of attempts: 10
Team names - 1812 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 17
  • Position: #325 / 585
  • Number of attempts: 6
Learn some german verbs - 532 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: #119 / 132
  • Number of attempts: 7
Remember VimGolf Rules ! - 260 entries

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 7
  • Position: #40 / 140
  • Number of attempts: 3
sort python functions and methods alphabetically - 23 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: #14 / 14
  • Number of attempts: 3
Fiddle percentages into real numbers - 841 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 / 288
  • Number of attempts: 4
C Reformatting - 689 entries

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

  • Best score: 30
  • Best player score: 70
  • Position: #142 / 162
  • Number of attempts: 1
Order and join - 965 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 10
  • Position: #78 / 258
  • Number of attempts: 8
Unwrap the text of an email message - 188 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: #73 / 73
  • Number of attempts: 2
Let's play some Ivmgolf - 1096 entries

Oops, I spelled that wrong.

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

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

  • Best score: 22
  • Best player score: 38
  • Position: #97 / 135
  • Number of attempts: 2
Another Mixed-Up Haiku - 238 entries

VimGolf ... a perfect evening?

  • Best score: 21
  • Best player score: 27
  • Position: #60 / 86
  • Number of attempts: 2
Reverse Simple Deletion - 834 entries

You did the simple deletion, now reverse it.

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

Vim likes macros

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

Correct the capitalization of each word

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

You might have to get clever to do this one.

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

Convert the first paragraph to be even less readable.

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

Make the header text stand out with surrounding asterisks

  • Best score: 15
  • Best player score: 16
  • Position: #126 / 340
  • Number of attempts: 6
Mrmclarrinson
Twitter:

entered into 33 challenges

contributed 0 challenges