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

Every other line - 2232 entries

AaAaAaA

  • Best score: 12
  • Best player score: 21
  • Number of attempts: 1
change parenthesis - 186 entries

change the pair of braces into a pair of parentheses

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 2
Just the middle - 9665 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 2
Add semicolons - 4293 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 2
remove lines containing the word "reader" - 2174 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 4
Search and Replace 0 - 4206 entries

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

  • Best score: 12
  • Best player score: 16
  • Number of attempts: 1
Applying same text modification in several lines - 1989 entries

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

  • Best score: 13
  • Best player score: 18
  • Number of attempts: 2
One number per line - 14139 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Number of attempts: 3
I forgot quotes - 12707 entries

Oops.

  • Best score: 10
  • Best player score: 18
  • Number of attempts: 5
Collect List - 3613 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 24
  • Number of attempts: 1
comment and uncomment code inline - 862 entries

It's very useful to be able to comment out a block of code in a quick edit. And likewise to uncomment the code. This operation often involves multi-line stanzas and even large blocks. With just line-wise navigation and insert mode this would cost you about 4 keystrokes per line. Master this hole of VimGolf and you'll quickly drop your key count in day to day Vim as well.

  • Best score: 9
  • Best player score: 19
  • Number of attempts: 1
Adrien
Twitter:

Administrateur système Linux, Cofondateur et développeur de la solution d'auto hébergement Yunohost #Linux #Debian #Yunohost

entered into 11 challenges

contributed 0 challenges