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

Extract HTML option values from tag values - 73 entries

Generate HTML option values from the text in the option tag. If the text contains multiple words, replace the spaces with an underscore and convert all capital letters to small letters.

  • Best score: 34
  • Best player score: 38
  • Number of attempts: 2
comment and uncomment code inline - 621 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: 10
  • Number of attempts: 2
Combines all items - 222 entries

For each line that starts with the same number I want to combine its contents

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 1
create arrows in a list - 62 entries

Add arrow at same distance

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 1
For all cases. - 91 entries

In this case... change it! :) Watch the line.

  • Best score: 8
  • Best player score: 8
  • Number of attempts: 1
Swap values - 3076 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 13
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 9017 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 3
Simple addition - 208 entries

The right side of the equation is already there. We just need the left one now.

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

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

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 3
Nesting SASS - 192 entries

Move a block inside another block and indent it

  • Best score: 9
  • Best player score: 17
  • Number of attempts: 1
Split line with dots - 1685 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 21
  • Number of attempts: 1
Array transposition - 1241 entries

Transpose two arrays into one.

  • Best score: 16
  • Best player score: 21
  • Number of attempts: 4

Contributed Challenges

Replace and keep the case - 319 entries

Replace all instance of plugin and Plugin to device and Device.

Split line with dots - 1685 entries

This line is too long, split it.

Benoit Tigeot
Twitter:

Dev backend. RSpec core team. #Ruby #Rails #Lambda #PostreSQL. Emoji consultant. Vim fan. | he / him

entered into 12 challenges

contributed 2 challenges