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

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 187
  • Position: #408 / 422
  • Number of attempts: 1
Reformat symbols in list - 1658 entries

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

  • Best score: 24
  • Best player score: 38
  • Position: #262 / 357
  • Number of attempts: 3
Poorly indented Python comments - 1350 entries

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

  • Best score: 15
  • Best player score: 68
  • Position: #192 / 225
  • Number of attempts: 5
delete swap - 1912 entries

delete all swap

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

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 31
  • Position: #281 / 624
  • Number of attempts: 3
Visual block training - 1118 entries

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

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

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

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

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 5
  • Position: #194 / 214
  • Number of attempts: 1
swap number pairs - 2173 entries

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

  • Best score: 16
  • Best player score: 34
  • Position: #294 / 394
  • Number of attempts: 2
HS Final exam vimgolf - 936 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: #221 / 245
  • Number of attempts: 3
Rural Post - 4602 entries

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

  • Best score: 9
  • Best player score: 20
  • Position: #874 / 1124
  • Number of attempts: 2
Satisfy the go linter - 2487 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: #432 / 496
  • Number of attempts: 2
Simple, Practical, and Common - 34012 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: #3753 / 7513
  • Number of attempts: 3
prepend * to every non-blank line - 6395 entries

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

  • Best score: 10
  • Best player score: 14
  • Position: #923 / 1562
  • Number of attempts: 2
One number per line - 18903 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 27
  • Position: #3559 / 3904
  • Number of attempts: 2
Box it - 8003 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 29
  • Position: #1375 / 1901
  • Number of attempts: 4
Basic renumbering - 5733 entries

Renumbering Basic.

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

entered into 17 challenges

contributed 0 challenges