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 - 1469 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 187
  • Position: #377 / 389
  • Number of attempts: 1
Reformat symbols in list - 1447 entries

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

  • Best score: 24
  • Best player score: 38
  • Position: #233 / 318
  • Number of attempts: 3
Poorly indented Python comments - 1149 entries

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

  • Best score: 15
  • Best player score: 68
  • Position: #170 / 199
  • Number of attempts: 5
delete swap - 1466 entries

delete all swap

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

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 31
  • Position: #228 / 497
  • Number of attempts: 3
Visual block training - 954 entries

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

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

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

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

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 5
  • Position: #175 / 193
  • Number of attempts: 1
swap number pairs - 2002 entries

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

  • Best score: 16
  • Best player score: 34
  • Position: #279 / 369
  • Number of attempts: 2
HS Final exam vimgolf - 864 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: #204 / 227
  • Number of attempts: 3
Rural Post - 4352 entries

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

  • Best score: 9
  • Best player score: 20
  • Position: #824 / 1066
  • Number of attempts: 2
Satisfy the go linter - 2169 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: #384 / 434
  • Number of attempts: 2
Simple, Practical, and Common - 33354 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: #3692 / 7358
  • Number of attempts: 3
prepend * to every non-blank line - 6202 entries

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

  • Best score: 10
  • Best player score: 14
  • Position: #894 / 1514
  • Number of attempts: 2
One number per line - 18615 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 27
  • Position: #3513 / 3841
  • Number of attempts: 2
Box it - 7818 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 29
  • Position: #1346 / 1861
  • Number of attempts: 4
Basic renumbering - 5584 entries

Renumbering Basic.

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

entered into 17 challenges

contributed 0 challenges