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! - 2651 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 67
  • Position: #569 / 616
  • Number of attempts: 1
Easy modification of ssh config - 382 entries

Just add another alias to each worker

  • Best score: 24
  • Best player score: 67
  • Position: #106 / 115
  • Number of attempts: 1
Add quotes to ansible playbook - 1030 entries

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

  • Best score: 8
  • Best player score: 9
  • Position: #199 / 325
  • Number of attempts: 2
Multiline to Single Line - 747 entries

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

  • Best score: 5
  • Best player score: 16
  • Position: #314 / 318
  • Number of attempts: 1
Simple, Practical, and Common - 33866 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: #2830 / 7474
  • Number of attempts: 3
prepend * to every non-blank line - 6366 entries

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

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

Just give me the numbers.

  • Best score: 14
  • Best player score: 26
  • Position: #3480 / 3889
  • Number of attempts: 3
Com(m)a Trouble - 3943 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #348 / 893
  • Number of attempts: 5
I forgot quotes - 16093 entries

Oops.

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

Software Engineer | IIT ISM CSE '21

entered into 9 challenges

contributed 0 challenges