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

Surround the 'z' character with brackets, quotes, and print as formatted string. - 572 entries

Surround the 'z' character with brackets, quotes, and print as formatted string.

  • Best score: 17
  • Best player score: 18
  • Position: #248 / 321
  • Number of attempts: 2
Paste a column after a column - 2632 entries

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

  • Best score: 14
  • Best player score: 47
  • Position: #491 / 570
  • Number of attempts: 2
Reformat symbols in list - 1635 entries

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

  • Best score: 24
  • Best player score: 36
  • Position: #241 / 352
  • Number of attempts: 4
Many duplicates - 1465 entries

Quick and easy

  • Best score: 7
  • Best player score: 13
  • Position: #437 / 478
  • Number of attempts: 2
2 quick changes and a numbered list - 648 entries

The ascii will not be lost, but rather numbered in 4 digit blocks with leading zeros.

  • Best score: 37
  • Best player score: 81
  • Position: #134 / 155
  • Number of attempts: 2
delete swap - 1818 entries

delete all swap

  • Best score: 5
  • Best player score: 10
  • Position: #457 / 567
  • Number of attempts: 5
Fix the shell script! - 2651 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 33
  • Position: #301 / 616
  • Number of attempts: 6
Wikitext headings to markdown - 1014 entries

Convert the wikitext headings to markdown.

  • Best score: 20
  • Best player score: 27
  • Position: #124 / 211
  • Number of attempts: 2
Fill in the chess board - 959 entries

Fill in the name of each square using its file (a-h) and rank (1-8).

  • Best score: 19
  • Best player score: 121
  • Position: #175 / 185
  • Number of attempts: 1
Generate a very basic Python constructor - 323 entries

I actually needed to do this myself, so I look forward to learning how.

  • Best score: 38
  • Best player score: 73
  • Position: #83 / 100
  • Number of attempts: 2
Modernise code - 1420 entries

Modernise and clean up some C++ code.

  • Best score: 34
  • Best player score: 49
  • Position: #229 / 328
  • Number of attempts: 3
Rural Post - 4572 entries

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

  • Best score: 9
  • Best player score: 12
  • Position: #549 / 1116
  • Number of attempts: 7
Aarya
Twitter:

entered into 12 challenges

contributed 0 challenges