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

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

  • Best score: 14
  • Best player score: 68
  • Position: #513 / 547
  • Number of attempts: 1
Many duplicates - 1443 entries

Quick and easy

  • Best score: 7
  • Best player score: 10
  • Position: #363 / 467
  • Number of attempts: 3
2 quick changes and a numbered list - 642 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: #140 / 153
  • Number of attempts: 1
delete swap - 1768 entries

delete all swap

  • Best score: 5
  • Best player score: 11
  • Position: #459 / 548
  • Number of attempts: 4
Visual block training - 1069 entries

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

  • Best score: 17
  • Best player score: 122
  • Position: #195 / 203
  • Number of attempts: 1
Inverting Lines - 1881 entries

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

  • Best score: 10
  • Best player score: 21
  • Position: #475 / 508
  • Number of attempts: 2
Python dataclasses - 1127 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 48
  • Position: #262 / 283
  • Number of attempts: 4
Basic renumbering - 5645 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 23
  • Position: #1078 / 1263
  • Number of attempts: 2
Swap assigned value - 643 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 12
  • Position: #212 / 253
  • Number of attempts: 4
NATO phonetic alphabet - 526 entries

Transform the series of words into a list.

  • Best score: 19
  • Best player score: 28
  • Position: #178 / 195
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1606 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: #295 / 446
  • Number of attempts: 3
Saving the hashes(#) - 2053 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: #459 / 479
  • Number of attempts: 1
Exchanging Quotes - 851 entries

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

  • Best score: 30
  • Best player score: 48
  • Position: #216 / 228
  • Number of attempts: 1
Remove noise from HTTP log - 717 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: #267 / 273
  • Number of attempts: 2
Remove semicolons after expressions - 648 entries

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

  • Best score: 6
  • Best player score: 8
  • Position: #232 / 262
  • Number of attempts: 3
Reverse Simple Deletion - 845 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #370 / 457
  • Number of attempts: 1
Indentation - 534 entries

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

  • Best score: 20
  • Best player score: 76
  • Position: #173 / 177
  • Number of attempts: 1
The Cake is a Lie - 1330 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 11
  • Position: #459 / 523
  • Number of attempts: 2
Context insensitive completion 0 - 558 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: #119 / 242
  • Number of attempts: 4
Simple text editing with Vim - 12680 entries

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

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

entered into 20 challenges

contributed 0 challenges