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

Fix the shell script! - 2681 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 67
  • Position: #577 / 624
  • Number of attempts: 1
Easy modification of ssh config - 406 entries

Just add another alias to each worker

  • Best score: 24
  • Best player score: 67
  • Position: #109 / 119
  • Number of attempts: 1
Add quotes to ansible playbook - 1049 entries

You created an ansible playbook, but forgot to add quotes. Can you fix it?

  • Best score: 8
  • Best player score: 9
  • Position: #201 / 332
  • Number of attempts: 2
Multiline to Single Line - 754 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 16
  • Position: #318 / 322
  • Number of attempts: 1
Simple, Practical, and Common - 34021 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 22
  • Best player score: 23
  • Position: #2840 / 7517
  • Number of attempts: 3
prepend * to every non-blank line - 6397 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 10
  • Position: #433 / 1563
  • Number of attempts: 1
One number per line - 18903 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 26
  • Position: #3493 / 3904
  • Number of attempts: 3
Com(m)a Trouble - 3993 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 13
  • Position: #352 / 910
  • Number of attempts: 5
I forgot quotes - 16239 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #2058 / 4225
  • Number of attempts: 2
Aayush Dutt
Twitter2:

Software Engineer | IIT ISM CSE '21

entered into 9 challenges

contributed 0 challenges