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

Paste a column after a column - 612 entries

This task is very common while using multi-cursor. What is the elegant vim way ?

  • Best score: 14
  • Best player score: 16
  • Position: #27 / 141
  • Number of attempts: 9
Many duplicates - 797 entries

Quick and easy

  • Best score: 7
  • Best player score: 8
  • Position: #180 / 266
  • Number of attempts: 4
delete swap - 981 entries

delete all swap

  • Best score: 5
  • Best player score: 5
  • Position: #190 / 320
  • Number of attempts: 3
hello-world-vimgolf - 1900 entries

Simple number generation

  • Best score: 10
  • Best player score: 14
  • Position: #425 / 543
  • Number of attempts: 1
Making 3 line function a one liner. - 221 entries

Simple challenge for frequent action while programming.

  • Best score: 4
  • Best player score: 4
  • Position: #122 / 146
  • Number of attempts: 1
Yo To Hello - 1074 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #376 / 494
  • Number of attempts: 2
Swap values - 4500 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Position: #517 / 1247
  • Number of attempts: 6
Extract argument from function - 2267 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 14
  • Position: #384 / 736
  • Number of attempts: 6
Just the middle - 11283 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #3172 / 4140
  • Number of attempts: 3
I forgot quotes - 15840 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #2019 / 4133
  • Number of attempts: 3
Words in parens - 12788 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1849 / 3930
  • Number of attempts: 1
Prefixes and suffixes - 576 entries

Generate all prefixes of "vimchallenge", then all suffixes.

  • Best score: 17
  • Best player score: 21
  • Position: #38 / 187
  • Number of attempts: 5
Switch function arguments - 2002 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 12
  • Position: #320 / 634
  • Number of attempts: 2
switch variable - 4993 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #994 / 1722
  • Number of attempts: 2
Increment, increment, increment.... - 606 entries

Vim likes macros

  • Best score: 10
  • Best player score: 10
  • Position: #57 / 385
  • Number of attempts: 1
Compile C - 357 entries

You might have to get clever to do this one.

  • Best score: 19
  • Best player score: 21
  • Position: #73 / 129
  • Number of attempts: 4
Remember FizzBuzz? - 633 entries

Output FizzBuzz to 100. Start with nothing.

  • Best score: 39
  • Best player score: 47
  • Position: #21 / 172
  • Number of attempts: 13
Simple text editing with Vim - 11856 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1896 / 3469
  • Number of attempts: 7
Reformat/Refactor a Golfer Class - 6219 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 32
  • Best player score: 35
  • Position: #379 / 1530
  • Number of attempts: 6
かみひろ
Twitter:

entered into 19 challenges

contributed 0 challenges