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

Rural Post - 4572 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 10
  • Position: #287 / 1116
  • Number of attempts: 5
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: 24
  • Position: #3101 / 7474
  • Number of attempts: 8
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: 15
  • Position: #973 / 1555
  • Number of attempts: 3
One number per line - 18831 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #1990 / 3889
  • Number of attempts: 2
Box it - 7962 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 24
  • Position: #953 / 1891
  • Number of attempts: 7
I forgot quotes - 16093 entries

Oops.

  • Best score: 10
  • Best player score: 12
  • Position: #1391 / 4202
  • Number of attempts: 9
quotes inside quotes - 3185 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: #942 / 1086
  • Number of attempts: 3
switch variable - 5094 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 14
  • Position: #1448 / 1754
  • Number of attempts: 2
Leonard Wagner
Twitter:

entered into 8 challenges

contributed 0 challenges