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

Satisfy the go linter - 2476 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 58
  • Position: #486 / 492
  • Number of attempts: 1
Add quotes to ansible playbook - 1036 entries

You created an ansible playbook, but forgot to add quotes. Can you fix it?

  • Best score: 8
  • Best player score: 28
  • Position: #323 / 327
  • Number of attempts: 1
xrandr outputs and dashes - 730 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: 57
  • Position: #227 / 227
  • Number of attempts: 1
From a Thunderlink to a Markdown link - 796 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: 34
  • Position: #157 / 175
  • Number of attempts: 4
Simple, Practical, and Common - 33929 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: 40
  • Position: #7177 / 7489
  • Number of attempts: 1
Swap values - 4667 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 57
  • Position: #1268 / 1284
  • Number of attempts: 1
prepend * to every non-blank line - 6380 entries

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

  • Best score: 10
  • Best player score: 19
  • Position: #1258 / 1557
  • Number of attempts: 2
One number per line - 18840 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 27
  • Position: #3553 / 3893
  • Number of attempts: 2
Wget failed to download redirections - 213 entries

Output of a wget session, where 302 where not properly handled due to certificate problems, has been saved to a file. Keep the correct URLs to start again downloading.

  • Best score: 15
  • Best player score: 42
  • Position: #67 / 68
  • Number of attempts: 3
Add string initializers to an enum - 899 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 52
  • Position: #259 / 264
  • Number of attempts: 1
Add semicolons - 10923 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 22
  • Position: #2889 / 3087
  • Number of attempts: 1
Box it - 7987 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 37
  • Position: #1692 / 1895
  • Number of attempts: 2
html paragraph to table - 634 entries

reformat html paragraph to table

  • Best score: 48
  • Best player score: 111
  • Position: #123 / 130
  • Number of attempts: 2
Just the middle - 11555 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 14
  • Position: #4170 / 4234
  • Number of attempts: 1
Add to end of each line... kinda - 339 entries

Visual-block mode can be used to add something to the end of each line, even if they are of differing lengths. However, what if it's not quite at the end?

  • Best score: 12
  • Best player score: 19
  • Position: #174 / 176
  • Number of attempts: 1
calculations - 321 entries

Complete these (weird) calculations.

  • Best score: 38
  • Best player score: 80
  • Position: #69 / 70
  • Number of attempts: 1
goeun-oh
Github:

entered into 16 challenges

contributed 0 challenges