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

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

  • Best score: 24
  • Best player score: 38
  • Position: #257 / 349
  • Number of attempts: 3
Poorly indented Python comments - 1316 entries

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

  • Best score: 15
  • Best player score: 68
  • Position: #189 / 222
  • Number of attempts: 5
delete swap - 1788 entries

delete all swap

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

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 31
  • Position: #269 / 603
  • Number of attempts: 3
Visual block training - 1075 entries

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

  • Best score: 17
  • Best player score: 42
  • Position: #127 / 205
  • 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. - 329 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 5
  • Position: #187 / 206
  • Number of attempts: 1
swap number pairs - 2115 entries

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

  • Best score: 16
  • Best player score: 34
  • Position: #288 / 384
  • Number of attempts: 2
HS Final exam vimgolf - 904 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: #214 / 238
  • Number of attempts: 3
Rural Post - 4551 entries

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

  • Best score: 9
  • Best player score: 20
  • Position: #862 / 1110
  • Number of attempts: 2
Satisfy the go linter - 2437 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: #423 / 481
  • Number of attempts: 2
Simple, Practical, and Common - 33742 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: #3733 / 7447
  • Number of attempts: 3
prepend * to every non-blank line - 6353 entries

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

  • Best score: 10
  • Best player score: 14
  • Position: #915 / 1549
  • Number of attempts: 2
One number per line - 18776 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 27
  • Position: #3538 / 3875
  • Number of attempts: 2
Box it - 7916 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 29
  • Position: #1361 / 1881
  • Number of attempts: 4
Basic renumbering - 5683 entries

Renumbering Basic.

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

entered into 17 challenges

contributed 0 challenges