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

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

  • Best score: 14
  • Best player score: 24
  • Position: #326 / 488
  • 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 - 1504 entries

Convert the data to a python dictionary

  • Best score: 47
  • Best player score: 64
  • Position: #140 / 395
  • Number of attempts: 2
Reformat symbols in list - 1466 entries

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

  • Best score: 24
  • Best player score: 35
  • Position: #204 / 322
  • Number of attempts: 5
Poorly indented Python comments - 1172 entries

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

  • Best score: 15
  • Best player score: 36
  • Position: #125 / 203
  • Number of attempts: 3
delete swap - 1523 entries

delete all swap

  • Best score: 5
  • Best player score: 9
  • Position: #370 / 477
  • Number of attempts: 4
Fix the shell script! - 2339 entries

Fix the shell script with the fewest keystrokes!

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

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

  • Best score: 10
  • Best player score: 13
  • Position: #340 / 524
  • Number of attempts: 1
hello-world-vimgolf - 2358 entries

Simple number generation

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

entered into 9 challenges

contributed 0 challenges