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

Replace word while reserving first letter case - 604 entries

Window -> Door window -> door Windows -> Windows windows -> windows

  • Best score: 24
  • Best player score: 51
  • Position: #100 / 118
  • Number of attempts: 1
Simple, Practical, and Common - 33647 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: 28
  • Position: #4377 / 7425
  • Number of attempts: 12
prepend * to every non-blank line - 6319 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 14
  • Position: #850 / 1540
  • Number of attempts: 1
One number per line - 18749 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 22
  • Position: #2624 / 3867
  • Number of attempts: 2
Add semicolons - 10872 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 12
  • Position: #1863 / 3067
  • Number of attempts: 3
Extract argument from function - 2357 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 22
  • Position: #717 / 753
  • Number of attempts: 1
Search and Replace 0 - 4994 entries

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

  • Best score: 12
  • Best player score: 17
  • Position: #1268 / 1627
  • Number of attempts: 1
Just the middle - 11464 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1721 / 4202
  • Number of attempts: 4
Wrap text in quotes - 368 entries

All the blocks of text should be wrapped in quotation marks.

  • Best score: 16
  • Best player score: 17
  • Position: #54 / 122
  • Number of attempts: 3
Gray area - 747 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 13
  • Position: #140 / 271
  • Number of attempts: 2
Where should I put the Newline? - 881 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Position: #232 / 437
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10672 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 15
  • Position: #2943 / 3685
  • Number of attempts: 2
Letter case trickery - 1630 entries

This file is in a downright esoteric format, consisting of hexadecimal numbers, non-hexadecimal keywords, and "Z" indicating end-of-line. Make the hexadecimal numbers lowercase.

  • Best score: 9
  • Best player score: 14
  • Position: #417 / 518
  • Number of attempts: 1
Words in parens - 12939 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 25
  • Position: #3762 / 3964
  • Number of attempts: 1
The holy-grail may help - 368 entries

Can you find it in less than 20 strokes, Arthur?

  • Best score: 16
  • Best player score: 17
  • Position: #171 / 210
  • Number of attempts: 1
Reverse Simple Deletion - 850 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #163 / 459
  • Number of attempts: 1
The Cake is a Lie - 1349 entries

Correct the capitalization of each word

  • Best score: 9
  • Best player score: 13
  • Position: #492 / 528
  • Number of attempts: 1
Make Fancy Header - 1052 entries

Make the header text stand out with surrounding asterisks

  • Best score: 15
  • Best player score: 17
  • Position: #165 / 344
  • Number of attempts: 2
Whitespace, empty lines and tabs - 3691 entries

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

  • Best score: 16
  • Best player score: 45
  • Position: #754 / 794
  • Number of attempts: 1
Simple text editing with Vim - 12856 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 22
  • Position: #2932 / 3707
  • Number of attempts: 2
Корнев Руслан
Twitter:

entered into 20 challenges

contributed 0 challenges