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

Put a cross in the square

  • Best score: 20
  • Best player score: 23
  • Position: #41 / 93
  • Number of attempts: 1
swap number pairs - 2169 entries

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

  • Best score: 16
  • Best player score: 40
  • Position: #322 / 393
  • Number of attempts: 1
Rural Post - 4595 entries

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

  • Best score: 9
  • Best player score: 11
  • Position: #527 / 1121
  • Number of attempts: 2
Multiline to Single Line - 753 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #91 / 321
  • Number of attempts: 3
Simple, Practical, and Common - 33970 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: #3122 / 7503
  • Number of attempts: 3
Swap values - 4703 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 13
  • Position: #644 / 1291
  • Number of attempts: 1
prepend * to every non-blank line - 6388 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #693 / 1559
  • Number of attempts: 3
One number per line - 18889 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Position: #2315 / 3898
  • Number of attempts: 1
Applying same text modification in several lines - 2927 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #488 / 865
  • Number of attempts: 1
Add semicolons - 10943 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1658 / 3093
  • Number of attempts: 3
remove lines containing the word "reader" - 3645 entries

easy stuff

  • Best score: 9
  • Best player score: 13
  • Position: #1018 / 1182
  • Number of attempts: 1
Just the middle - 11590 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1441 / 4246
  • Number of attempts: 2
Back to the roots - 74 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: #38 / 41
  • Number of attempts: 1
Simple addition - 337 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: #98 / 125
  • Number of attempts: 1
Fun With The Diagonal - 110 entries

change the lowercase characters on the main diagonal to uppercase

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

how good are you with simple regex?

  • Best score: 10
  • Best player score: 10
  • Position: #31 / 56
  • Number of attempts: 1
Around the clock - 212 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 / 79
  • Number of attempts: 3
readability - 331 entries

Make the code readable by adding some spaces

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

Oops.

  • Best score: 10
  • Best player score: 17
  • Position: #3102 / 4218
  • Number of attempts: 1
Change name of a variable - 182 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 / 140
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10748 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2874 / 3711
  • Number of attempts: 2
Append semicolon after expressions - 1068 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 12
  • Position: #254 / 424
  • Number of attempts: 1
switch variable - 5114 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #1001 / 1759
  • Number of attempts: 2
Numbering a List - 1942 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 13
  • Position: #53 / 658
  • Number of attempts: 1
A Simple One - 1077 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 / 676
  • Number of attempts: 1
Increment, increment, increment.... - 703 entries

Vim likes macros

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

entered into 26 challenges

contributed 0 challenges