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

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

  • Best score: 17
  • Best player score: 17
  • Position: #46 / 278
  • Number of attempts: 2
Paste a column after a column - 2324 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 / 502
  • Number of attempts: 9
Many duplicates - 1284 entries

Quick and easy

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

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 30
  • Position: #228 / 550
  • Number of attempts: 3
Hogwarts Email Sorting - 890 entries

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

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

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1245 / 3049
  • Number of attempts: 4
multiple cursor alternative - 1487 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: #182 / 377
  • Number of attempts: 7
Line under headers - 2022 entries

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

  • Best score: 24
  • Best player score: 28
  • Position: #226 / 498
  • Number of attempts: 5
I forgot quotes - 15935 entries

Oops.

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

Put hyphens everywhere.

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

Indent each line with <line number> whitespaces.

  • Best score: 12
  • Best player score: 13
  • Position: #54 / 193
  • 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