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

Simple, Practical, and Common - 33787 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: 27
  • Position: #3878 / 7454
  • Number of attempts: 1
Swap values - 4647 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #432 / 1276
  • Number of attempts: 3
V to the i - 4824 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 8
  • Position: #1262 / 1899
  • Number of attempts: 2
Copy three lines - 2875 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 16
  • Position: #261 / 641
  • Number of attempts: 2
Array transposition - 2430 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 28
  • Position: #331 / 451
  • Number of attempts: 1
Condensed Cases - 807 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: 16
  • Position: #189 / 248
  • Number of attempts: 1
I forgot quotes - 16061 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1716 / 4195
  • Number of attempts: 3
Comparing scores - 112 entries

If Alice and Bob both did the challenge, put their entries together in the top paragraph, so we can compare their scores more easily.

  • Best score: 18
  • Best player score: 21
  • Position: #11 / 35
  • Number of attempts: 3
quotes inside quotes - 3182 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 17
  • Position: #911 / 1085
  • Number of attempts: 1
Words in parens - 12975 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2400 / 3971
  • Number of attempts: 1
Indentation - 552 entries

Indent each line according to the right number of spaces it needs.

  • Best score: 20
  • Best player score: 24
  • Position: #46 / 181
  • Number of attempts: 6
Denis Kaluznyy
Twitter:

Студентирую и все в этом роде

entered into 11 challenges

contributed 0 challenges