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

Simple, Practical, and Common - 32758 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: 22
  • Position: #661 / 7239
  • Number of attempts: 6
One number per line - 18278 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 17
  • Position: #1060 / 3768
  • Number of attempts: 3
V to the i - 4605 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 8
  • Position: #860 / 1842
  • Number of attempts: 3
Every other line - 2781 entries

AaAaAaA

  • Best score: 12
  • Best player score: 15
  • Position: #295 / 677
  • Number of attempts: 3
Start coding format - 128 entries

I used to start coding with following format: int main(){ -(cursor here) }

  • Best score: 22
  • Best player score: 24
  • Position: #45 / 63
  • Number of attempts: 1
Just the middle - 11080 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1747 / 4091
  • Number of attempts: 2
Basic renumbering - 5395 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 14
  • Position: #347 / 1219
  • Number of attempts: 7
Sort files from hosts - 137 entries

Resume files by host. I hope you enjoy with this challenge

  • Best score: 15
  • Best player score: 18
  • Position: #26 / 62
  • Number of attempts: 3
camel riding - 734 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 16
  • Position: #91 / 263
  • Number of attempts: 5
readability - 298 entries

Make the code readable by adding some spaces

  • Best score: 18
  • Best player score: 18
  • Position: #34 / 143
  • Number of attempts: 1
remove all lines in first part - 162 entries

From the second part, remove all lines in the first part. It can be useful when you have done something from a long list, you want to know what is not done yet!

  • Best score: 13
  • Best player score: 15
  • Position: #12 / 57
  • Number of attempts: 4
Shuffled numbers - 203 entries

Each number is paired with the number it should follow. That's enough information to put them in order.

  • Best score: 15
  • Best player score: 16
  • Position: #44 / 85
  • Number of attempts: 4
I forgot quotes - 15656 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1514 / 4097
  • Number of attempts: 2
-a-b-c- - 3077 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Position: #440 / 1099
  • Number of attempts: 1
Mess in revision history - 1117 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 22
  • Position: #111 / 239
  • Number of attempts: 3
A HAPPY NEW YEAR 2014 ! - 10511 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #1705 / 3628
  • Number of attempts: 4
Words in parens - 12682 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 21
  • Position: #3347 / 3905
  • Number of attempts: 1
Word frequency alignment - 233 entries

You've got to align the second column, but the spacing is inconvenient and there are nasty tabs in the way. If you're a "real Vim ninja," this could be very quick indeed...

  • Best score: 5
  • Best player score: 5
  • Position: #104 / 142
  • Number of attempts: 2
XML to JSON - 44 entries

Convert this xml file into json.

  • Best score: 75
  • Best player score: 93
  • Position: #6 / 17
  • Number of attempts: 4
switch variable - 4865 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #782 / 1689
  • Number of attempts: 2
Refactor to Helpers - 45 entries

This Rails partial is almost all template escapes. Put it into a helper, and refactor each case to methods so we can build out the controls for each. (I've converted to tabs - fighting with Vimgolf's default config shouldn't be part of the challenge.)

  • Best score: 147
  • Best player score: 325
  • Position: #15 / 22
  • Number of attempts: 1
Increment, increment, increment.... - 531 entries

Vim likes macros

  • Best score: 10
  • Best player score: 12
  • Position: #251 / 357
  • Number of attempts: 1

Contributed Challenges

Sort files from hosts - 137 entries

Resume files by host. I hope you enjoy with this challenge

i5513
Twitter:

entered into 22 challenges

contributed 1 challenges