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 - 58 entries

Put a cross in the square

  • Best score: 20
  • Best player score: 23
  • Position: #15 / 33
  • Number of attempts: 1
swap number pairs - 1121 entries

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

  • Best score: 16
  • Best player score: 40
  • Position: #177 / 214
  • Number of attempts: 1
Rural Post - 3717 entries

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

  • Best score: 9
  • Best player score: 11
  • Position: #409 / 918
  • Number of attempts: 2
Multiline to Single Line - 325 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #91 / 153
  • Number of attempts: 3
Simple, Practical, and Common - 32746 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: #3021 / 7235
  • Number of attempts: 3
Swap values - 4390 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 13
  • Position: #616 / 1230
  • Number of attempts: 1
prepend * to every non-blank line - 5776 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #640 / 1421
  • Number of attempts: 3
One number per line - 18240 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Position: #2234 / 3760
  • Number of attempts: 1
Applying same text modification in several lines - 2699 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #450 / 803
  • Number of attempts: 1
Add semicolons - 10429 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1608 / 2954
  • Number of attempts: 3
remove lines containing the word "reader" - 3419 entries

easy stuff

  • Best score: 9
  • Best player score: 13
  • Position: #952 / 1108
  • Number of attempts: 1
Just the middle - 11074 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1442 / 4088
  • Number of attempts: 2
Back to the roots - 42 entries

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

  • Best score: 23
  • Best player score: 24
  • Position: #27 / 29
  • Number of attempts: 1
Simple addition - 288 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: #82 / 105
  • Number of attempts: 1
Fun With The Diagonal - 96 entries

change the lowercase characters on the main diagonal to uppercase

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

how good are you with simple regex?

  • Best score: 10
  • Best player score: 10
  • Position: #31 / 50
  • Number of attempts: 1
Around the clock - 167 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 / 65
  • Number of attempts: 3
readability - 298 entries

Make the code readable by adding some spaces

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

Oops.

  • Best score: 10
  • Best player score: 17
  • Position: #3013 / 4095
  • Number of attempts: 1
Change name of a variable - 154 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 / 122
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10507 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2803 / 3626
  • Number of attempts: 2
Append semicolon after expressions - 912 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 12
  • Position: #236 / 374
  • Number of attempts: 1
switch variable - 4863 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #965 / 1688
  • Number of attempts: 2
Numbering a List - 1774 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 13
  • Position: #53 / 609
  • Number of attempts: 1
A Simple One - 870 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 / 581
  • Number of attempts: 1
Increment, increment, increment.... - 531 entries

Vim likes macros

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

entered into 26 challenges

contributed 0 challenges