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

Put a cross in the square

  • Best score: 22
  • Best player score: 23
  • Number of attempts: 1
swap number pairs - 377 entries

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

  • Best score: 16
  • Best player score: 40
  • Number of attempts: 1
Rural Post - 2463 entries

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

  • Best score: 9
  • Best player score: 11
  • Number of attempts: 2
Multiline to Single Line - 207 entries

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

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 3
prepend * to every non-blank line - 5140 entries

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

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 3
Around the clock - 155 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
  • Number of attempts: 3
Add semicolons - 9573 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 3
remove lines containing the word "reader" - 3275 entries

easy stuff

  • Best score: 9
  • Best player score: 13
  • Number of attempts: 1
Applying same text modification in several lines - 2613 entries

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

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 1
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
  • Number of attempts: 1
Simple addition - 262 entries

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

  • Best score: 12
  • Best player score: 14
  • Number of attempts: 1
One number per line - 17680 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Number of attempts: 1
ASCII Art - 80 entries

how good are you with simple regex?

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 1
Fun With The Diagonal - 91 entries

change the lowercase characters on the main diagonal to uppercase

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 1
Swap values - 4313 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 13
  • Number of attempts: 1
Simple, Practical, and Common - 32021 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
  • Number of attempts: 3
readability - 298 entries

Make the code readable by adding some spaces

  • Best score: 18
  • Best player score: 18
  • Number of attempts: 2
Just the middle - 10896 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 2
I forgot quotes - 15269 entries

Oops.

  • Best score: 10
  • Best player score: 17
  • Number of attempts: 1
Change name of a variable - 153 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
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10396 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Number of attempts: 2
Append semicolon after expressions - 899 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 1
switch variable - 4806 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 2
Numbering a List - 1766 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 1
Increment, increment, increment.... - 530 entries

Vim likes macros

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 1
A Simple One - 862 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
  • Number of attempts: 1
Jake Grossman
Twitter:

entered into 26 challenges

contributed 0 challenges