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 - 2485 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: #489 / 495
  • Number of attempts: 1
Add quotes to ansible playbook - 1042 entries

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

  • Best score: 8
  • Best player score: 28
  • Position: #326 / 331
  • Number of attempts: 1
xrandr outputs and dashes - 731 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: #228 / 228
  • Number of attempts: 1
From a Thunderlink to a Markdown link - 797 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: #158 / 176
  • Number of attempts: 4
Simple, Practical, and Common - 33990 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: #7195 / 7510
  • Number of attempts: 1
Swap values - 4704 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 57
  • Position: #1276 / 1292
  • Number of attempts: 1
prepend * to every non-blank line - 6392 entries

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

  • Best score: 10
  • Best player score: 19
  • Position: #1262 / 1561
  • Number of attempts: 2
One number per line - 18903 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 27
  • Position: #3563 / 3904
  • Number of attempts: 2
Wget failed to download redirections - 232 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: #70 / 71
  • Number of attempts: 3
Add string initializers to an enum - 903 entries

Change Typescript enum so that it has string initializers.

  • Best score: 21
  • Best player score: 52
  • Position: #261 / 266
  • Number of attempts: 1
Add semicolons - 10956 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 22
  • Position: #2900 / 3098
  • Number of attempts: 1
Box it - 8003 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 37
  • Position: #1697 / 1901
  • Number of attempts: 2
html paragraph to table - 635 entries

reformat html paragraph to table

  • Best score: 48
  • Best player score: 111
  • Position: #124 / 131
  • Number of attempts: 2
Just the middle - 11613 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 14
  • Position: #4187 / 4253
  • Number of attempts: 1
Add to end of each line... kinda - 345 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: #176 / 178
  • Number of attempts: 1
calculations - 322 entries

Complete these (weird) calculations.

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

entered into 16 challenges

contributed 0 challenges