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

Sort and Tag - 622 entries

The goal is to sort these lines alphabetically, assign a unique identifier to each line in the format "[01]", "[02]", etc., and then restore the original order of the lines while preserving the assigned identifiers.

  • Best score: 36
  • Best player score: 114
  • Position: #87 / 127
  • Number of attempts: 2
Change LaTex itemizations formats - 125 entries

Inspired by the way my professor formats their LaTeX assignments.

  • Best score: 43
  • Best player score: 90
  • Position: #17 / 20
  • Number of attempts: 2
New teacher - 1423 entries

Update the details of the new CS teacher.

  • Best score: 19
  • Best player score: 23
  • Position: #92 / 300
  • Number of attempts: 3
months to html list items - 1110 entries

Turn the months into list items.

  • Best score: 22
  • Best player score: 24
  • Position: #62 / 301
  • Number of attempts: 5
Find fix point of cos - 1444 entries

Write a function to find the fix point of cos. It is not a good code; It is just to use vim. Inspired by the excellent https://mvanier.livejournal.com/2897.html about the Y combinator.

  • Best score: 14
  • Best player score: 15
  • Position: #206 / 427
  • Number of attempts: 2
Making 3 line function a one liner. - 340 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #168 / 209
  • Number of attempts: 4
Staircase - 152 entries

Going downstairs, while singing the alphabet song. Some vb practice to us all. Would it be much easier to make it go from left to right instead?

  • Best score: 21
  • Best player score: 47
  • Position: #31 / 35
  • Number of attempts: 4
Rural Post - 4572 entries

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

  • Best score: 9
  • Best player score: 10
  • Position: #477 / 1116
  • Number of attempts: 2
Yo To Hello - 1152 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 10
  • Position: #392 / 534
  • Number of attempts: 1
Hogwarts Email Sorting - 944 entries

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

  • Best score: 20
  • Best player score: 26
  • Position: #220 / 267
  • Number of attempts: 1
Quote modules - 1095 entries

Complete golang import statement.

  • Best score: 21
  • Best player score: 27
  • Position: #181 / 286
  • Number of attempts: 1
remove lines containing the word "reader" - 3622 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #862 / 1177
  • Number of attempts: 6
Search and Replace 0 - 5031 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #1087 / 1638
  • Number of attempts: 2
Learn some german verbs - 541 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: 24
  • Position: #74 / 134
  • Number of attempts: 2
Todo list specification - 405 entries

The every item on the todo list must be done today. Modify the list to reflect that.

  • Best score: 37
  • Best player score: 37
  • Position: #97 / 183
  • Number of attempts: 4
unknown command - 169 entries

I want change 5 words

  • Best score: 7
  • Best player score: 7
  • Position: #68 / 89
  • Number of attempts: 2
abcd > a b c d - 299 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Position: #202 / 228
  • Number of attempts: 1
The Quick Brown Fox Jumps Over The Lazy Vim - 425 entries

Someone has vandalized this text file and replaced the beginning character of one word in each line with a Big "X." Please remove the big X's, and fix each line to read "The Quick Brown Fox Jumps Over The Lazy Dog."

  • Best score: 8
  • Best player score: 13
  • Position: #182 / 193
  • Number of attempts: 2
The holy-grail may help - 389 entries

Can you find it in less than 20 strokes, Arthur?

  • Best score: 16
  • Best player score: 16
  • Position: #159 / 215
  • Number of attempts: 5
Increment, increment, increment.... - 701 entries

Vim likes macros

  • Best score: 10
  • Best player score: 10
  • Position: #68 / 413
  • Number of attempts: 3
Reverse characters in a line - 789 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: 13
  • Position: #91 / 269
  • Number of attempts: 5
Get rid of html tags - 423 entries

Want to read more about Vim's background? Then get rid of those html tags...

  • Best score: 12
  • Best player score: 16
  • Position: #21 / 245
  • Number of attempts: 2
pajamaman7 aka tommyBuckets
Twitter2:

not real

entered into 22 challenges

contributed 0 challenges