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

Search and Replace 0 - 5045 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 14
  • Position: #976 / 1644
  • Number of attempts: 1
Words in parens - 13005 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 16
  • Position: #2023 / 3979
  • Number of attempts: 1
replacing each line of a block selection - 3026 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 27
  • Position: #586 / 783
  • Number of attempts: 1
switch variable - 5101 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1115 / 1756
  • Number of attempts: 2
Numbering a List - 1941 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 25
  • Position: #538 / 657
  • Number of attempts: 2
Whitespace, empty lines and tabs - 3952 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 29
  • Position: #540 / 842
  • Number of attempts: 3
Foo Bar
Twitter:

entered into 6 challenges

contributed 0 challenges