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 - 33742 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: 46
  • Position: #7294 / 7447
  • Number of attempts: 2
Swap values - 4643 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 61
  • Position: #1262 / 1274
  • Number of attempts: 1
Applying same text modification in several lines - 2897 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 12
  • Best player score: 93
  • Position: #847 / 857
  • Number of attempts: 1
Search and Replace 0 - 5007 entries

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

  • Best score: 12
  • Best player score: 21
  • Position: #1539 / 1631
  • Number of attempts: 1
I forgot quotes - 16038 entries

Oops.

  • Best score: 10
  • Best player score: 30
  • Position: #4105 / 4192
  • Number of attempts: 1
Whitespace, empty lines and tabs - 3763 entries

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

  • Best score: 16
  • Best player score: 63
  • Position: #791 / 807
  • Number of attempts: 1
Connor
Twitter:

Send it 🍍

entered into 6 challenges

contributed 0 challenges