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

HS exam question - 1589 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 187
  • Position: #403 / 417
  • Number of attempts: 1
Reformat symbols in list - 1621 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 38
  • Position: #256 / 348
  • Number of attempts: 3
Poorly indented Python comments - 1315 entries

Fix the alignment of some Python comments as quickly as possible.

  • Best score: 15
  • Best player score: 68
  • Position: #188 / 221
  • Number of attempts: 5
delete swap - 1786 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #174 / 555
  • Number of attempts: 2
Fix the shell script! - 2545 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 31
  • Position: #266 / 590
  • Number of attempts: 3
Visual block training - 1070 entries

You see the input. You see the output. Go.

  • Best score: 17
  • Best player score: 42
  • Position: #126 / 204
  • Number of attempts: 8
Put a newline after every 10 lines in vim - 1660 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 14
  • Position: #445 / 558
  • Number of attempts: 6
Making 3 line function a one liner. - 328 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 5
  • Position: #186 / 205
  • Number of attempts: 1
swap number pairs - 2104 entries

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

  • Best score: 16
  • Best player score: 34
  • Position: #286 / 381
  • Number of attempts: 2
HS Final exam vimgolf - 897 entries

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

  • Best score: 21
  • Best player score: 47
  • Position: #213 / 236
  • Number of attempts: 3
Rural Post - 4488 entries

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

  • Best score: 9
  • Best player score: 20
  • Position: #854 / 1101
  • Number of attempts: 2
Satisfy the go linter - 2391 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: 35
  • Position: #417 / 471
  • Number of attempts: 2
Simple, Practical, and Common - 33647 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: 26
  • Position: #3723 / 7425
  • Number of attempts: 3
prepend * to every non-blank line - 6319 entries

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

  • Best score: 10
  • Best player score: 14
  • Position: #910 / 1540
  • Number of attempts: 2
One number per line - 18749 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 27
  • Position: #3533 / 3867
  • Number of attempts: 2
Box it - 7909 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 29
  • Position: #1358 / 1878
  • Number of attempts: 4
Basic renumbering - 5673 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 46
  • Position: #1259 / 1267
  • Number of attempts: 1
Nicholas Healy
Twitter:

entered into 17 challenges

contributed 0 challenges