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

Reformat symbols in list - 1649 entries

Saw this in some lecture, easy reformatting using multiple cursor in VS Code

  • Best score: 24
  • Best player score: 80
  • Position: #342 / 355
  • Number of attempts: 1
Just the middle - 11555 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1701 / 4234
  • Number of attempts: 1
Mute the second method of this script - 456 entries

prepend a # infront of every line of the second method

  • Best score: 8
  • Best player score: 9
  • Position: #38 / 240
  • Number of attempts: 2
I forgot quotes - 16127 entries

Oops.

  • Best score: 10
  • Best player score: 17
  • Position: #2791 / 4208
  • Number of attempts: 1
A simple change - 476 entries

Just change the numbers in the most efficient way ...

  • Best score: 12
  • Best player score: 24
  • Position: #188 / 196
  • Number of attempts: 1
Let's play some Ivmgolf - 1138 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 12
  • Position: #385 / 450
  • Number of attempts: 1
Exchanging Quotes - 864 entries

Sometimes you need to exchange a choice of quotes in some code.

  • Best score: 30
  • Best player score: 56
  • Position: #227 / 232
  • Number of attempts: 2
Switch function arguments - 2188 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 16
  • Position: #593 / 676
  • Number of attempts: 1
Append semicolon after expressions - 1061 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 13
  • Position: #271 / 421
  • Number of attempts: 3
Reverse and double space - 500 entries

Reverse the order of the given lines and double space everything

  • Best score: 14
  • Best player score: 17
  • Position: #126 / 199
  • Number of attempts: 2
Remove noise from HTTP log - 732 entries

This piece of log (from the year 2000) contains some irrelevant data. We only want to see the HTTP method and resource.

  • Best score: 15
  • Best player score: 25
  • Position: #264 / 278
  • Number of attempts: 1
Remove semicolons after expressions - 669 entries

A follow-up for http://vimgolf.com/challenges/4fc9d767d3a0d4000100000e.

  • Best score: 6
  • Best player score: 8
  • Position: #153 / 265
  • Number of attempts: 4
switch variable - 5101 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 33
  • Position: #1732 / 1756
  • Number of attempts: 1
The meaning - 577 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #104 / 364
  • Number of attempts: 3
Format the output - 146 entries

Sometimes your standard out is a little hard to read. Take this multilevel hash and make it human readable.

  • Best score: 35
  • Best player score: 99
  • Position: #38 / 40
  • Number of attempts: 1
Calculate the table totals - 152 entries

Go ahead... commit the treachery of using vim as a spreadsheet.

  • Best score: 33
  • Best player score: 162
  • Position: #44 / 46
  • Number of attempts: 1
Asenar
Twitter:

Je cause tranquillou avec ceux qui ne pensent pas comme moi. J'aime les gens qui doutent. Développeur #php #sf #git #vim #js

entered into 16 challenges

contributed 0 challenges