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

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

  • Best score: 17
  • Best player score: 17
  • Position: #46 / 176
  • Number of attempts: 2
Paste a column after a column - 1676 entries

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

  • Best score: 14
  • Best player score: 14
  • Position: #47 / 366
  • Number of attempts: 9
Many duplicates - 1048 entries

Quick and easy

  • Best score: 7
  • Best player score: 7
  • Position: #21 / 341
  • Number of attempts: 2
Fix the shell script! - 1852 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 30
  • Position: #186 / 450
  • Number of attempts: 3
Hogwarts Email Sorting - 858 entries

Given a list of emails, get the students full name and their associated house.

  • Best score: 20
  • Best player score: 20
  • Position: #8 / 248
  • Number of attempts: 5
Add semicolons - 10744 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1240 / 3030
  • Number of attempts: 4
multiple cursor alternative - 1460 entries

from: https://www.reddit.com/r/vim/comments/6w5pfa/crosspost_from_remacs_how_would_you_do_this_in_vim/

  • Best score: 19
  • Best player score: 20
  • Position: #181 / 374
  • Number of attempts: 7
Line under headers - 1959 entries

Put a line under each header, and remove the other markdown formatting.

  • Best score: 24
  • Best player score: 28
  • Position: #218 / 483
  • Number of attempts: 5
I forgot quotes - 15880 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #973 / 4146
  • Number of attempts: 9
-a-b-c- - 3160 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Position: #274 / 1124
  • Number of attempts: 3
Stairs Indenting - 442 entries

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 13
  • Position: #53 / 191
  • Number of attempts: 2
Daniel Simionato
Twitter:

Professional idiot. I push buttons and yell at light boxes. They usually don't yell back.

entered into 11 challenges

contributed 0 challenges