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

Execute immediate SQL - 72 entries

Sql string tranformation ...

  • Best score: 60
  • Best player score: 72
  • Number of attempts: 3
Make HTML List - 875 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 69
  • Number of attempts: 1
Simple, Practical, and Common - 23966 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: 2
  • Best player score: 28
  • Number of attempts: 4
Saving the hashes(#) - 1709 entries

The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.

  • Best score: 20
  • Best player score: 25
  • Number of attempts: 9
I forgot quotes - 11342 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 7
Collect List - 3399 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 17
  • Number of attempts: 1
Add to end of each line... kinda - 263 entries

Visual-block mode can be used to add something to the end of each line, even if they are of differing lengths. However, what if it's not quite at the end?

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 3
Words in parens - 10831 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 5
Rudolfs Sohn
Twitter:

entered into 8 challenges

contributed 0 challenges