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

Python Hello World! Reformatting - 836 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 42
  • Number of attempts: 3
Two become one - 675 entries

We have two c arrays and want to make one two dimensional out of it. Can we do that?

  • Best score: 25
  • Best player score: 30
  • Number of attempts: 3
Start coding format - 119 entries

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

  • Best score: 22
  • Best player score: 25
  • Number of attempts: 4
Copy three lines - 2090 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 24
  • Number of attempts: 1
That hyphen - 2201 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 11
  • Number of attempts: 9
Vice versa - 5992 entries

Little role switching.

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 5
Numbering a List - 1733 entries

Pretty simple, number the list.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 1
Basic renumbering - 4634 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 3
The name of the game - 582 entries

End up with the name of the game.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 3
switch variable - 4324 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 4
V to the i - 3953 entries

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

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
The meaning - 502 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 2
Wrap text in quotes - 286 entries

All the blocks of text should be wrapped in quotation marks.

  • Best score: 16
  • Best player score: 30
  • Number of attempts: 1
Just the middle - 9337 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 4
learn vim in short time - 186 entries

so happy to learn vim.because vim is awesome

  • Best score: 8
  • Best player score: 8
  • Number of attempts: 1
Simple, Practical, and Common - 25356 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: 23
  • Number of attempts: 8
Change the content of a string - 1237 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 23
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 9550 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 2
Switch function arguments - 1840 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 13
  • Number of attempts: 1
Vertical Limit - 2124 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 36
  • Number of attempts: 2
Gray area - 639 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 13
  • Number of attempts: 4
Swap assigned value - 499 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 12
  • Number of attempts: 3
Swap values - 3587 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 13
  • Number of attempts: 4
Split line with dots - 1840 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 23
  • Number of attempts: 1
I forgot quotes - 11968 entries

Oops.

  • Best score: 10
  • Best player score: 20
  • Number of attempts: 1
Simple text editing with Vim - 10466 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 22
  • Number of attempts: 2
VimGolfNight - 458 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 4
One number per line - 13051 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 22
  • Number of attempts: 4
Florian Gauger
Twitter:

entered into 28 challenges

contributed 0 challenges