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. - 488 entries

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

  • Best score: 17
  • Best player score: 17
  • Position: #83 / 273
  • Number of attempts: 3
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: 18
  • Position: #204 / 491
  • Number of attempts: 3
Poorly indented Python comments - 1190 entries

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

  • Best score: 15
  • Best player score: 28
  • Position: #98 / 205
  • Number of attempts: 5
Many duplicates - 1259 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #192 / 415
  • Number of attempts: 1
delete swap - 1540 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #188 / 483
  • Number of attempts: 1
hello-world-vimgolf - 2367 entries

Simple number generation

  • Best score: 10
  • Best player score: 16
  • Position: #554 / 670
  • Number of attempts: 1
Preferably without multi-cursor plugin - 538 entries

Originally asked as question on reddit by kpthunder: https://www.reddit.com/r/vim/comments/9fvsro/what_is_the_most_efficient_way_to_go_about/

  • Best score: 30
  • Best player score: 41
  • Position: #106 / 127
  • Number of attempts: 2
simple format (3) - 72 entries

reverse two column values!

  • Best score: 34
  • Best player score: 55
  • Position: #15 / 21
  • Number of attempts: 2
g-guy
Twitter:

Keep It Simple Stupid.

entered into 8 challenges

contributed 0 challenges