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

Put a cross in the square

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

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

  • Best score: 16
  • Best player score: 40
  • Position: #201 / 244
  • Number of attempts: 1
Rural Post - 3797 entries

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

  • Best score: 9
  • Best player score: 11
  • Position: #423 / 938
  • Number of attempts: 2
Multiline to Single Line - 378 entries

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

  • Best score: 5
  • Best player score: 5
  • Position: #91 / 179
  • Number of attempts: 3
Simple, Practical, and Common - 32778 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: #3027 / 7242
  • Number of attempts: 3
Swap values - 4409 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 13
  • Position: #620 / 1235
  • Number of attempts: 1
prepend * to every non-blank line - 5829 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #646 / 1434
  • Number of attempts: 3
One number per line - 18295 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Position: #2244 / 3770
  • Number of attempts: 1
Applying same text modification in several lines - 2713 entries

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

  • Best score: 12
  • Best player score: 14
  • Position: #453 / 807
  • Number of attempts: 1
Add semicolons - 10467 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1611 / 2966
  • Number of attempts: 3
remove lines containing the word "reader" - 3436 entries

easy stuff

  • Best score: 9
  • Best player score: 13
  • Position: #957 / 1113
  • Number of attempts: 1
Just the middle - 11086 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1442 / 4093
  • Number of attempts: 2
Back to the roots - 43 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: #28 / 30
  • 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 - 174 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 / 67
  • Number of attempts: 3
readability - 304 entries

Make the code readable by adding some spaces

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

Oops.

  • Best score: 10
  • Best player score: 17
  • Position: #3017 / 4099
  • Number of attempts: 1
Change name of a variable - 156 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 / 123
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10515 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 14
  • Position: #2807 / 3630
  • Number of attempts: 2
Append semicolon after expressions - 931 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 12
  • Position: #237 / 378
  • Number of attempts: 1
switch variable - 4881 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #968 / 1694
  • Number of attempts: 2
Numbering a List - 1798 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 13
  • Position: #53 / 615
  • Number of attempts: 1
A Simple One - 881 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 / 590
  • Number of attempts: 1
Increment, increment, increment.... - 537 entries

Vim likes macros

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

entered into 26 challenges

contributed 0 challenges