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

Put a newline after every 10 lines in vim - 1685 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 18
  • Position: #516 / 566
  • Number of attempts: 1
hello-world-vimgolf - 2532 entries

Simple number generation

  • Best score: 10
  • Best player score: 13
  • Position: #489 / 725
  • Number of attempts: 2
Contribute to keyboard mashing - 905 entries

Speak in tongues

  • Best score: 17
  • Best player score: 20
  • Position: #188 / 275
  • Number of attempts: 3
Learn to ask for :help - 593 entries

Learn to use the help to reduce your strokes...

  • Best score: 19
  • Best player score: 44
  • Position: #109 / 131
  • Number of attempts: 3
Making 3 line function a one liner. - 346 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #82 / 213
  • Number of attempts: 1
Put a cross in the square - 243 entries

Put a cross in the square

  • Best score: 20
  • Best player score: 26
  • Position: #86 / 93
  • Number of attempts: 1
Python: Def to Lambda - 476 entries

LAMBDA!!!

  • Best score: 19
  • Best player score: 19
  • Position: #63 / 159
  • Number of attempts: 2
Turn the x - 339 entries

Turn the x to a +

  • Best score: 19
  • Best player score: 28
  • Position: #78 / 84
  • Number of attempts: 1
Format the CSS - 165 entries

You just copied some CSS color names from the web and need to add them to your python module. Create the COLORS variable and assign a dict() with the names as keys and hex-colors as values. BEWARE OF THE TABS!!

  • Best score: 41
  • Best player score: 46
  • Position: #31 / 50
  • Number of attempts: 1
Rural Post - 4595 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 14
  • Position: #741 / 1121
  • Number of attempts: 1
Satisfy the go linter - 2482 entries

You just came up with this briliant go vars package. But dang, you forgot to add comments to the exported variables. Can you add a comment over each variable with a TODO-placeholder?

  • Best score: 20
  • Best player score: 23
  • Position: #233 / 494
  • Number of attempts: 1
Add quotes to ansible playbook - 1039 entries

You created an ansible playbook, but forgot to add quotes. Can you fix it?

  • Best score: 8
  • Best player score: 11
  • Position: #290 / 329
  • Number of attempts: 2
Multiline to Single Line - 753 entries

Convert a multiline, indented file to a single line with no whitespace

  • Best score: 5
  • Best player score: 5
  • Position: #180 / 321
  • Number of attempts: 1
Yo To Hello - 1154 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 10
  • Position: #358 / 535
  • Number of attempts: 3
Remember VimGolf Rules ! - 277 entries

Rules, ... and don't forget !

  • Best score: 7
  • Best player score: 7
  • Position: #38 / 147
  • Number of attempts: 3
Join 'em - 255 entries

This shouldn't be too tough

  • Best score: 4
  • Best player score: 5
  • Position: #139 / 154
  • Number of attempts: 2
camel riding - 796 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 17
  • Position: #196 / 282
  • Number of attempts: 1
remove all lines in first part - 223 entries

From the second part, remove all lines in the first part. It can be useful when you have done something from a long list, you want to know what is not done yet!

  • Best score: 13
  • Best player score: 20
  • Position: #52 / 68
  • Number of attempts: 1
Happy TvvO - 438 entries

Don’t forget the past, learn from it. Happy New Year.

  • Best score: 12
  • Best player score: 12
  • Position: #147 / 210
  • Number of attempts: 1
abcd > a b c d - 300 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 15
  • Position: #187 / 229
  • Number of attempts: 1
The name of the game - 682 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Position: #262 / 366
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1641 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 9
  • Position: #251 / 456
  • Number of attempts: 2
A Simple One - 1077 entries

Here is a very simple one - just to illustrate/introduce a vim feature that some people seem to miss...

  • Best score: 9
  • Best player score: 9
  • Position: #529 / 676
  • Number of attempts: 1
Indentation - 552 entries

Indent each line according to the right number of spaces it needs.

  • Best score: 20
  • Best player score: 32
  • Position: #139 / 181
  • Number of attempts: 1
Auri Iodide
Twitter:

entered into 24 challenges

contributed 0 challenges