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

Generate a very basic Python constructor (fixed) - 375 entries

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

  • Best score: 29
  • Best player score: 37
  • Position: #35 / 95
  • Number of attempts: 7
Visual block training - 305 entries

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

  • Best score: 18
  • Best player score: 30
  • Position: #30 / 73
  • Number of attempts: 8
hello-world-vimgolf - 1390 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #168 / 397
  • Number of attempts: 3
Plotting some variables in python - 1111 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: 35
  • Position: #55 / 235
  • Number of attempts: 4
Migrated to Postgres! - 200 entries

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

  • Best score: 26
  • Best player score: 29
  • Position: #47 / 82
  • Number of attempts: 1
simple replacements - 1006 entries

The goal is to see the replacement commands in action.

  • Best score: 19
  • Best player score: 23
  • Position: #136 / 227
  • Number of attempts: 5
Inverting Lines - 1261 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 11
  • Position: #180 / 350
  • Number of attempts: 5
Making 3 line function a one liner. - 142 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #25 / 97
  • Number of attempts: 1
Modernise code - 805 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 52
  • Position: #140 / 186
  • Number of attempts: 3
swap number pairs - 1395 entries

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

  • Best score: 16
  • Best player score: 23
  • Position: #122 / 276
  • Number of attempts: 7
HS Final exam vimgolf - 630 entries

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

  • Best score: 21
  • Best player score: 28
  • Position: #98 / 170
  • Number of attempts: 3
Rural Post - 4072 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 10
  • Position: #411 / 1008
  • Number of attempts: 6
Satisfy the go linter - 1996 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 26
  • Position: #249 / 400
  • Number of attempts: 4
Add quotes to ansible playbook - 775 entries

You created an ansible playbook, but forgot to add quotes. Can you fix it?

  • Best score: 8
  • Best player score: 9
  • Position: #161 / 245
  • Number of attempts: 6
Multiline to Single Line - 514 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 5
  • Position: #201 / 232
  • Number of attempts: 1
Replace pattern with 1, 2, 3, ... on each line - 1025 entries

For each line replace a search pattern (in this case $) with numbers starting at 1 and then increasing by 1 for each replaced match. a$b$c$ -> a0b1c2

  • Best score: 21
  • Best player score: 30
  • Position: #134 / 207
  • Number of attempts: 13
Hogwarts Email Sorting - 818 entries

Given a list of emails, get the students full name and their associated house.

  • Best score: 20
  • Best player score: 24
  • Position: #179 / 235
  • Number of attempts: 3
Get mail address from outlook format - 586 entries

Create a mail list space separated of mail list formatted by outlook

  • Best score: 15
  • Best player score: 19
  • Position: #132 / 180
  • Number of attempts: 3
prepend * to every non-blank line - 5946 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 11
  • Position: #706 / 1459
  • Number of attempts: 8
Quote modules - 1013 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 28
  • Position: #178 / 257
  • Number of attempts: 2
Copy three lines - 2785 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 17
  • Position: #289 / 623
  • Number of attempts: 5
That hyphen - 2482 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 10
  • Position: #273 / 679
  • Number of attempts: 3
Just the middle - 11119 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3143 / 4108
  • Number of attempts: 3
Basic renumbering - 5422 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 11
  • Position: #258 / 1225
  • Number of attempts: 1
create arrows in a list - 86 entries

Add arrow at same distance

  • Best score: 10
  • Best player score: 13
  • Position: #60 / 61
  • Number of attempts: 2
Wrap text in quotes - 334 entries

All the blocks of text should be wrapped in quotation marks.

  • Best score: 16
  • Best player score: 17
  • Position: #69 / 114
  • Number of attempts: 4
From A to B - 552 entries

Mirror and change this text block

  • Best score: 16
  • Best player score: 23
  • Position: #134 / 152
  • Number of attempts: 10
Space out the alphabet - 1575 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 21
  • Position: #286 / 431
  • Number of attempts: 1
Mute the second method of this script - 437 entries

prepend a # infront of every line of the second method

  • Best score: 9
  • Best player score: 9
  • Position: #145 / 232
  • Number of attempts: 3
Condensed Cases - 744 entries

Apple's new programming language, Swift, allows two style of case statements: 1) one Enum case on each line, or 2) multiple Enum cases on a single line. Convert the following from the first case (no pun intended) to the second type.

  • Best score: 12
  • Best player score: 15
  • Position: #163 / 228
  • Number of attempts: 7
Word frequency alignment - 235 entries

You've got to align the second column, but the spacing is inconvenient and there are nasty tabs in the way. If you're a "real Vim ninja," this could be very quick indeed...

  • Best score: 5
  • Best player score: 5
  • Position: #108 / 143
  • Number of attempts: 6
Stairs Indenting - 412 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 16
  • Position: #152 / 181
  • Number of attempts: 5
Switch function arguments - 1967 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 11
  • Position: #178 / 624
  • Number of attempts: 5
Append semicolon after expressions - 939 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 11
  • Position: #128 / 383
  • Number of attempts: 4
Remove noise from HTTP log - 657 entries

This piece of log (from the year 2000) contains some irrelevant data. We only want to see the HTTP method and resource.

  • Best score: 15
  • Best player score: 16
  • Position: #189 / 259
  • Number of attempts: 8
Line Zipper - 430 entries

Zip/pair related lines.

  • Best score: 12
  • Best player score: 13
  • Position: #60 / 203
  • Number of attempts: 6
imports alignment (python) - 639 entries

Align as one import per line.

  • Best score: 17
  • Best player score: 19
  • Position: #65 / 190
  • Number of attempts: 15
Generate English Alphabets - 433 entries

Start with a, get up to z.

  • Best score: 19
  • Best player score: 42
  • Position: #178 / 193
  • Number of attempts: 2
Assignment Alignment - 764 entries

line up the operators. Use spaces, not tabs.

  • Best score: 18
  • Best player score: 30
  • Position: #162 / 209
  • Number of attempts: 6
Reverse Simple Deletion - 754 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #350 / 427
  • Number of attempts: 1
Hatsuyume - 397 entries

http://en.wikipedia.org/wiki/Hatsuyume

  • Best score: 16
  • Best player score: 17
  • Position: #8 / 162
  • Number of attempts: 1
Make Fancy Header - 959 entries

Make the header text stand out with surrounding asterisks

  • Best score: 16
  • Best player score: 19
  • Position: #238 / 324
  • Number of attempts: 1
Reverse characters in a line - 634 entries

You have everything you need, just not in the right order. Mastermind would give you 26 white pegs.

  • Best score: 12
  • Best player score: 16
  • Position: #139 / 234
  • Number of attempts: 5
._.
Twitter:

NaN

entered into 43 challenges

contributed 0 challenges