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

Paste a column after a column - 2171 entries

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

  • Best score: 14
  • Best player score: 68
  • Position: #435 / 465
  • Number of attempts: 1
Many duplicates - 1218 entries

Quick and easy

  • Best score: 7
  • Best player score: 10
  • Position: #310 / 397
  • Number of attempts: 3
2 quick changes and a numbered list - 580 entries

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

  • Best score: 37
  • Best player score: 99
  • Position: #130 / 141
  • Number of attempts: 1
delete swap - 1466 entries

delete all swap

  • Best score: 5
  • Best player score: 11
  • Position: #392 / 465
  • Number of attempts: 4
Visual block training - 954 entries

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

  • Best score: 17
  • Best player score: 122
  • Position: #170 / 176
  • Number of attempts: 1
Inverting Lines - 1797 entries

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

  • Best score: 10
  • Best player score: 21
  • Position: #455 / 486
  • Number of attempts: 2
Python dataclasses - 982 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 48
  • Position: #229 / 248
  • Number of attempts: 4
Basic renumbering - 5584 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 23
  • Position: #1072 / 1257
  • Number of attempts: 2
Swap assigned value - 614 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 12
  • Position: #208 / 247
  • Number of attempts: 4
NATO phonetic alphabet - 498 entries

Transform the series of words into a list.

  • Best score: 19
  • Best player score: 28
  • Position: #173 / 189
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1569 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 12
  • Position: #290 / 437
  • Number of attempts: 3
Saving the hashes(#) - 1992 entries

The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.

  • Best score: 20
  • Best player score: 43
  • Position: #453 / 473
  • Number of attempts: 1
Exchanging Quotes - 820 entries

Sometimes you need to exchange a choice of quotes in some code.

  • Best score: 30
  • Best player score: 48
  • Position: #212 / 224
  • Number of attempts: 1
Remove noise from HTTP log - 693 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: 28
  • Position: #264 / 270
  • Number of attempts: 2
Remove semicolons after expressions - 628 entries

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

  • Best score: 6
  • Best player score: 8
  • Position: #228 / 258
  • Number of attempts: 3
Reverse Simple Deletion - 832 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #369 / 454
  • Number of attempts: 1
Indentation - 497 entries

Indent each line according to the right number of spaces it needs.

  • Best score: 21
  • Best player score: 76
  • Position: #164 / 168
  • Number of attempts: 1
The Cake is a Lie - 1284 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 11
  • Position: #451 / 511
  • Number of attempts: 2
Context insensitive completion 0 - 502 entries

Buried in the lines you're not supposed to add is the line "Add this line!" Add that line to the top of the file.

  • Best score: 6
  • Best player score: 7
  • Position: #117 / 231
  • Number of attempts: 4
Simple text editing with Vim - 12233 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 18
  • Position: #2571 / 3567
  • Number of attempts: 1
Jin-hyeok Kim
Twitter:

entered into 20 challenges

contributed 0 challenges