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

Based off of something I saw on reddit

  • Best score: 28
  • Best player score: 38
  • Position: #28 / 53
  • Number of attempts: 5
Many duplicates - 719 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #162 / 242
  • Number of attempts: 5
2 quick changes and a numbered list - 384 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 / 94
  • Number of attempts: 11
delete swap - 830 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #170 / 279
  • Number of attempts: 4
Generate a very basic Python constructor (fixed) - 879 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: #74 / 193
  • Number of attempts: 2
Fix the shell script! - 1514 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 27
  • Position: #82 / 373
  • Number of attempts: 7
Visual block training - 689 entries

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

  • Best score: 17
  • Best player score: 19
  • Position: #35 / 132
  • Number of attempts: 12
Plotting some variables in python - 1320 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: #108 / 278
  • Number of attempts: 8
Enumerate Bullets - 241 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: #36 / 63
  • Number of attempts: 9
swap number pairs - 1808 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #98 / 332
  • Number of attempts: 9
HS Final exam vimgolf - 782 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: #74 / 209
  • Number of attempts: 5
Applying same text modification in several lines - 2779 entries

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

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

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

  • Best score: 12
  • Best player score: 12
  • Position: #160 / 779
  • Number of attempts: 8
From argument to object - 1441 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 / 441
  • Number of attempts: 2
comment and uncomment code inline - 1033 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 / 303
  • Number of attempts: 5
On Being Stylish - 71 entries

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

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

The team names are misspelled.

  • Best score: 16
  • Best player score: 17
  • Position: #320 / 574
  • Number of attempts: 6
Learn some german verbs - 527 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: #116 / 129
  • Number of attempts: 7
Remember VimGolf Rules ! - 245 entries

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 7
  • Position: #40 / 131
  • Number of attempts: 3
sort python functions and methods alphabetically - 21 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: #12 / 12
  • Number of attempts: 3
Fiddle percentages into real numbers - 809 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 / 277
  • Number of attempts: 4
C Reformatting - 687 entries

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

  • Best score: 30
  • Best player score: 70
  • Position: #140 / 160
  • Number of attempts: 1
Order and join - 913 entries

There's something special about the input order.

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

Oops, I spelled that wrong.

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

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

  • Best score: 22
  • Best player score: 38
  • Position: #94 / 131
  • Number of attempts: 2
Another Mixed-Up Haiku - 230 entries

VimGolf ... a perfect evening?

  • Best score: 21
  • Best player score: 27
  • Position: #58 / 83
  • Number of attempts: 2
Reverse Simple Deletion - 811 entries

You did the simple deletion, now reverse it.

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

Vim likes macros

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

Correct the capitalization of each word

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

You might have to get clever to do this one.

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

Convert the first paragraph to be even less readable.

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

Make the header text stand out with surrounding asterisks

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

entered into 33 challenges

contributed 0 challenges