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

Paste a column after a column - 2262 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 24
  • Position: #328 / 491
  • Number of attempts: 4
Filter number combinations that don't add to 11 - 376 entries

Append the sum of each line to its end, alongside an equals sign, and remove any that do not sum to 11. The ordering of lines should stay the same. Note that the combinations are semi-arbitrary and not all 4-number combinations are present in the file.

  • Best score: 27
  • Best player score: 31
  • Position: #95 / 110
  • Number of attempts: 4
HS exam question - 1510 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 64
  • Position: #141 / 397
  • Number of attempts: 2
Reformat symbols in list - 1472 entries

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

  • Best score: 24
  • Best player score: 35
  • Position: #206 / 324
  • Number of attempts: 5
Poorly indented Python comments - 1190 entries

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

  • Best score: 15
  • Best player score: 36
  • Position: #126 / 205
  • Number of attempts: 3
delete swap - 1540 entries

delete all swap

  • Best score: 5
  • Best player score: 9
  • Position: #374 / 483
  • Number of attempts: 4
Fix the shell script! - 2349 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 31
  • Position: #250 / 543
  • Number of attempts: 1
Put a newline after every 10 lines in vim - 1581 entries

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

  • Best score: 10
  • Best player score: 13
  • Position: #341 / 527
  • Number of attempts: 1
hello-world-vimgolf - 2367 entries

Simple number generation

  • Best score: 10
  • Best player score: 14
  • Position: #507 / 670
  • Number of attempts: 2
yann
Twitter:

entered into 9 challenges

contributed 0 challenges