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

Surround the 'z' character with brackets, quotes, and print as formatted string. - 504 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 17
  • Position: #35 / 284
  • Number of attempts: 4
Filter number combinations that don't add to 11 - 379 entries

Append the sum of each line to its end, alongside an equals sign, and remove any that do not sum to 11. The ordering of lines should stay the same. Note that the combinations are semi-arbitrary and not all 4-number combinations are present in the file.

  • Best score: 27
  • Best player score: 104
  • Position: #110 / 112
  • Number of attempts: 1
Tabbed Table to Python Array - 646 entries

Not payed by the hour? So make it fast ;-) The table contains the relative occurencies of bigrams (two consecutive letters) in 1/100,000 in the german language, copy-pasted from http://www.mathe.tu-freiberg.de/~hebisch/cafe/kryptographie/bigramme.html

  • Best score: 50
  • Best player score: 1697
  • Position: #168 / 168
  • Number of attempts: 1
xrandr outputs and dashes - 671 entries

uh oh, different video drivers identify display outputs with more dashes. Quick, need to change this xrandr script!

  • Best score: 12
  • Best player score: 12
  • Position: #139 / 218
  • Number of attempts: 2
From a Thunderlink to a Markdown link - 756 entries

ThunderLinks are durable hyperlinks to specific email messages generated from Thunderbird in HTML format. Leverage the power of vim to make them suitable for a markdown-formatted file.

  • Best score: 18
  • Best player score: 18
  • Position: #57 / 167
  • Number of attempts: 4
Yo To Hello - 1122 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #382 / 520
  • Number of attempts: 4
Simple, Practical, and Common - 33442 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 24
  • Position: #3098 / 7379
  • Number of attempts: 1
Get mail address from outlook format - 641 entries

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

  • Best score: 15
  • Best player score: 20
  • Position: #153 / 201
  • Number of attempts: 1
Reconstruct the actual output from my unit test tool report - 151 entries

When a test fails, my unit test tool reports differences between the actual output and the expected output as follow: - line in the expected output but missing in the actual output are prefixed with a dash - unexpected lines in the actual output are prefixed with a plus sign - comments added by the unit test tool are prefixed with a question mark - common lines are showed `as-is` (well, almost;) From that "diff" format, I would like to reconstruct the actual output.

  • Best score: 16
  • Best player score: 16
  • Position: #26 / 51
  • Number of attempts: 2
prepend * to every non-blank line - 6250 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #431 / 1528
  • Number of attempts: 6
One number per line - 18668 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #759 / 3851
  • Number of attempts: 3
Add semicolons - 10822 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #756 / 3051
  • Number of attempts: 2
remove lines containing the word "reader" - 3555 entries

easy stuff

  • Best score: 9
  • Best player score: 22
  • Position: #1123 / 1150
  • Number of attempts: 1
Box it - 7845 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Position: #806 / 1869
  • Number of attempts: 8
Just the middle - 11371 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1499 / 4169
  • Number of attempts: 3
Create a table - 331 entries

Convert the given input into a formatted table

  • Best score: 16
  • Best player score: 20
  • Position: #83 / 105
  • Number of attempts: 3
Line under headers - 2022 entries

Put a line under each header, and remove the other markdown formatting.

  • Best score: 24
  • Best player score: 28
  • Position: #239 / 498
  • Number of attempts: 2
Array transposition - 2406 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 18
  • Position: #207 / 445
  • Number of attempts: 1
I forgot quotes - 15943 entries

Oops.

  • Best score: 10
  • Best player score: 11
  • Position: #1239 / 4165
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10641 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1594 / 3673
  • Number of attempts: 6
quotes inside quotes - 3128 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 17
  • Position: #943 / 1073
  • Number of attempts: 1
Words in parens - 12867 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #1169 / 3949
  • Number of attempts: 2
vimmac
Twitter2:

entered into 22 challenges

contributed 0 challenges