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

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

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

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

  • Best score: 7
  • Best player score: 18
  • Position: #251 / 580
  • Number of attempts: 3
Poorly indented Python comments - 1381 entries

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

  • Best score: 15
  • Best player score: 28
  • Position: #111 / 227
  • Number of attempts: 5
Many duplicates - 1489 entries

Quick and easy

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

delete all swap

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

Simple number generation

  • Best score: 6
  • Best player score: 16
  • Position: #601 / 728
  • Number of attempts: 1
Preferably without multi-cursor plugin - 584 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: #113 / 135
  • Number of attempts: 2
simple format (3) - 104 entries

reverse two column values!

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

Keep It Simple Stupid.

entered into 8 challenges

contributed 0 challenges