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

Inverting Lines - 964 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #87 / 264
  • Number of attempts: 8
Python dataclasses - 418 entries

Simple challenge to extract fields from a Python class

  • Best score: 19
  • Best player score: 19
  • Position: #29 / 118
  • Number of attempts: 11
swap number pairs - 1254 entries

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

  • Best score: 16
  • Best player score: 27
  • Position: #127 / 237
  • Number of attempts: 5
HS Final exam vimgolf - 569 entries

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

  • Best score: 21
  • Best player score: 23
  • Position: #64 / 153
  • Number of attempts: 3
Multiline to Single Line - 374 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #141 / 177
  • Number of attempts: 2
Box it - 7657 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Position: #788 / 1829
  • Number of attempts: 4
Search and Replace 0 - 4583 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Position: #674 / 1518
  • Number of attempts: 3
Flip the bit - 102 entries

Change the specific 0 to a 1.

  • Best score: 8
  • Best player score: 8
  • Position: #31 / 62
  • Number of attempts: 2
NATO phonetic alphabet - 455 entries

Transform the series of words into a list.

  • Best score: 19
  • Best player score: 21
  • Position: #96 / 171
  • Number of attempts: 3
The name of the game - 614 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #257 / 334
  • Number of attempts: 1
Aligning function arguments to match a specific coding style - 189 entries

Most projects have specific coding style guidelines. In this case, the argument list must be broken into a new line for each argument, with the argument names right aligned, taking into account pointers.

  • Best score: 16
  • Best player score: 16
  • Position: #7 / 63
  • Number of attempts: 8
Numbering a List - 1797 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 26
  • Position: #540 / 614
  • Number of attempts: 1
A Simple One - 880 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #516 / 589
  • Number of attempts: 2
Reverse characters in a line - 618 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: 17
  • Position: #149 / 228
  • Number of attempts: 2
0xdrowsy
Twitter:

entered into 14 challenges

contributed 0 challenges