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

Paste a column after a column - 2262 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 18
  • Position: #205 / 491
  • Number of attempts: 1
Fix the shell script! - 2349 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 27
  • Position: #98 / 543
  • Number of attempts: 12
hello-world-vimgolf - 2379 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #246 / 674
  • Number of attempts: 5
Migrated to Postgres! - 312 entries

Celebration completion of this project. https://github.com/igrigorik/vimgolf/pull/322

  • Best score: 26
  • Best player score: 27
  • Position: #31 / 122
  • Number of attempts: 4
Inverting Lines - 1837 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 10
  • Position: #182 / 498
  • Number of attempts: 12
swap number pairs - 2011 entries

Swap the numbers in a bunch of 2-element arrays.

  • Best score: 16
  • Best player score: 26
  • Position: #197 / 370
  • Number of attempts: 15
One number per line - 18616 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 36
  • Position: #3739 / 3842
  • Number of attempts: 3
attr_aligner - 3444 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 19
  • Position: #177 / 692
  • Number of attempts: 1
Words in parens - 12858 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #1166 / 3946
  • Number of attempts: 6
Reverse and count - 456 entries

Someone typed things upside down and now a Vim ninja needs to reverse the lines and count how many there are.

  • Best score: 18
  • Best player score: 36
  • Position: #156 / 172
  • Number of attempts: 1
でよ
Twitter:

生存本能無し男

entered into 10 challenges

contributed 0 challenges