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 cross in the square - 228 entries

Put a cross in the square

  • Best score: 20
  • Best player score: 23
  • Position: #40 / 91
  • Number of attempts: 1
swap number pairs - 2115 entries

Swap the numbers in a bunch of 2-element arrays.

  • Best score: 16
  • Best player score: 40
  • Position: #316 / 384
  • Number of attempts: 1
Rural Post - 4532 entries

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

  • Best score: 9
  • Best player score: 11
  • Position: #518 / 1107
  • Number of attempts: 2
Multiline to Single Line - 731 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #91 / 310
  • Number of attempts: 3
Simple, Practical, and Common - 33724 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: 24
  • Position: #3103 / 7442
  • Number of attempts: 3
Swap values - 4643 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 13
  • Position: #640 / 1274
  • Number of attempts: 1
prepend * to every non-blank line - 6337 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #689 / 1546
  • Number of attempts: 3
One number per line - 18755 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Position: #2302 / 3870
  • Number of attempts: 1
Applying same text modification in several lines - 2897 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #485 / 857
  • Number of attempts: 1
Add semicolons - 10881 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1649 / 3072
  • Number of attempts: 3
remove lines containing the word "reader" - 3604 entries

easy stuff

  • Best score: 9
  • Best player score: 13
  • Position: #1006 / 1169
  • Number of attempts: 1
Just the middle - 11484 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1441 / 4209
  • Number of attempts: 2
Back to the roots - 63 entries

Johnny has a file with more integers. He wants to change each number with its square root. Can you help him?

  • Best score: 20
  • Best player score: 24
  • Position: #35 / 38
  • Number of attempts: 1
Simple addition - 331 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #96 / 123
  • Number of attempts: 1
Fun With The Diagonal - 107 entries

change the lowercase characters on the main diagonal to uppercase

  • Best score: 11
  • Best player score: 11
  • Position: #69 / 81
  • Number of attempts: 1
ASCII Art - 87 entries

how good are you with simple regex?

  • Best score: 10
  • Best player score: 10
  • Position: #31 / 54
  • Number of attempts: 1
Around the clock - 199 entries

You'll want to use 2 special commands to complete this. If you haven't yet, read through 'input.txt', especially :help simple-changes

  • Best score: 13
  • Best player score: 13
  • Position: #30 / 77
  • Number of attempts: 3
readability - 327 entries

Make the code readable by adding some spaces

  • Best score: 18
  • Best player score: 18
  • Position: #78 / 152
  • Number of attempts: 2
I forgot quotes - 16022 entries

Oops.

  • Best score: 10
  • Best player score: 17
  • Position: #3084 / 4189
  • Number of attempts: 1
Change name of a variable - 179 entries

Replace the name of the $variable with the fastest move possible. The challenge is having a command that allow you to easily change the variable name even if its indented.

  • Best score: 9
  • Best player score: 9
  • Position: #116 / 137
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10682 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2859 / 3689
  • Number of attempts: 2
Append semicolon after expressions - 1056 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 12
  • Position: #253 / 419
  • Number of attempts: 1
switch variable - 5079 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #995 / 1749
  • Number of attempts: 2
Numbering a List - 1935 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 13
  • Position: #53 / 654
  • Number of attempts: 1
A Simple One - 1057 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: #512 / 667
  • Number of attempts: 1
Increment, increment, increment.... - 692 entries

Vim likes macros

  • Best score: 10
  • Best player score: 10
  • Position: #38 / 410
  • Number of attempts: 1
Jake Grossman
Twitter:

entered into 26 challenges

contributed 0 challenges