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

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

  • Best score: 17
  • Best player score: 17
  • Position: #83 / 328
  • Number of attempts: 3
Paste a column after a column - 2668 entries

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

  • Best score: 14
  • Best player score: 18
  • Position: #250 / 578
  • Number of attempts: 3
Poorly indented Python comments - 1350 entries

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

  • Best score: 15
  • Best player score: 28
  • Position: #109 / 225
  • Number of attempts: 5
Many duplicates - 1484 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #202 / 483
  • Number of attempts: 1
delete swap - 1884 entries

delete all swap

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

Simple number generation

  • Best score: 10
  • Best player score: 16
  • Position: #599 / 726
  • Number of attempts: 1
Preferably without multi-cursor plugin - 562 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: #112 / 134
  • Number of attempts: 2
simple format (3) - 94 entries

reverse two column values!

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

Keep It Simple Stupid.

entered into 8 challenges

contributed 0 challenges