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

Multiline to Single Line - 374 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #4 / 177
  • Number of attempts: 1
Simple, Practical, and Common - 32765 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: 26
  • Position: #3489 / 7241
  • Number of attempts: 4
Com(m)a Trouble - 3307 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #219 / 746
  • Number of attempts: 9
Increment each number - 946 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 22
  • Position: #175 / 233
  • Number of attempts: 2
Condensed Cases - 735 entries

Apple's new programming language, Swift, allows two style of case statements: 1) one Enum case on each line, or 2) multiple Enum cases on a single line. Convert the following from the first case (no pun intended) to the second type.

  • Best score: 12
  • Best player score: 14
  • Position: #97 / 226
  • Number of attempts: 3
I forgot quotes - 15666 entries

Oops.

  • Best score: 10
  • Best player score: 17
  • Position: #2681 / 4098
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10513 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 17
  • Position: #3280 / 3629
  • Number of attempts: 2
Simple text editing with Vim - 11431 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 20
  • Position: #2546 / 3357
  • Number of attempts: 1

Contributed Challenges

Pretty format for variable declarations - 129 entries

Project standards demand the equal signs must be aligned for better readability.

Increment each number - 946 entries

Increment each number individually by one

Federico Ramirez
Twitter:

Riddlesolver who can't solve riddles. Programmer, gamer, martial artist, and cat lover from Argentina. Opinions are my own.

entered into 8 challenges

contributed 2 challenges