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 - 32879 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: #1586 / 7266
  • Number of attempts: 7
Swap values inside brackets - 2423 entries

Easy challenge.

  • Best score: 14
  • Best player score: 17
  • Position: #283 / 558
  • Number of attempts: 6
Number Sort - 283 entries

sort the list of newline-separated numbers incrementally. Numbers are in the range 1 to 1000, with 500 missing

  • Best score: 9
  • Best player score: 9
  • Position: #90 / 151
  • Number of attempts: 1
On Being Stylish - 61 entries

Your PR cannot be accepted if you don't follow our corporate style guide.

  • Best score: 33
  • Best player score: 56
  • Position: #16 / 17
  • Number of attempts: 1
Basic renumbering - 5422 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 17
  • Position: #573 / 1225
  • Number of attempts: 1
Sorting a glossary - 112 entries

Sort a glossary. Glossary head contains a header phrase ending with ':' and glossary body has multi line text indented with a tab.

  • Best score: 6
  • Best player score: 7
  • Position: #69 / 72
  • Number of attempts: 1
Generate a list of numbers - 274 entries

Please generate list of numbers from 1 to 20.

  • Best score: 14
  • Best player score: 14
  • Position: #51 / 129
  • Number of attempts: 1
Assign numbers to fields - 91 entries

You are given a list of space-separated strings. Add an increasing numeric prefix to each one.

  • Best score: 19
  • Best player score: 20
  • Position: #39 / 51
  • Number of attempts: 1
Swap assigned value - 551 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 11
  • Position: #171 / 234
  • Number of attempts: 2
Binary and Increment - 41 entries

Some numbers fun: not only increasing numbers but also increasing binary.

  • Best score: 22
  • Best player score: 23
  • Position: #3 / 15
  • Number of attempts: 3
Change your calendar - 278 entries

Happy New Year!

  • Best score: 18
  • Best player score: 18
  • Position: #7 / 76
  • Number of attempts: 18
VimGolfNight - 490 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #263 / 325
  • Number of attempts: 1
Space out the alphabet - 1575 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 16
  • Position: #118 / 431
  • Number of attempts: 4
Lisp Condense - 426 entries

Reduce 4 cons selection operations down to one function call.

  • Best score: 13
  • Best player score: 14
  • Position: #81 / 150
  • Number of attempts: 3
120 Degrees - 433 entries

Rotate that triangle.

  • Best score: 14
  • Best player score: 26
  • Position: #115 / 139
  • Number of attempts: 1
Counting in binary - 410 entries

"a" represents 0; "A" represents 1. Start from zero and count to 15.

  • Best score: 16
  • Best player score: 16
  • Position: #10 / 107
  • Number of attempts: 11
Sort by your own sum - 49 entries

Same numbers as last time, but you'll have to add them yourself.

  • Best score: 25
  • Best player score: 38
  • Position: #20 / 22
  • Number of attempts: 1
Vertical Limit - 2363 entries

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

  • Best score: 21
  • Best player score: 23
  • Position: #238 / 714
  • Number of attempts: 2
The meaning - 520 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 5
  • Position: #283 / 335
  • Number of attempts: 1
Multiplication table. - 195 entries

Create a multiplication table.

  • Best score: 31
  • Best player score: 65
  • Position: #26 / 63
  • Number of attempts: 1
A Simple One - 912 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: #486 / 606
  • Number of attempts: 1
Round Round - 243 entries

Round Round

  • Best score: 19
  • Best player score: 43
  • Position: #38 / 81
  • Number of attempts: 3
Increment, increment, increment.... - 557 entries

Vim likes macros

  • Best score: 10
  • Best player score: 10
  • Position: #24 / 367
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 5979 entries

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

  • Best score: 32
  • Best player score: 38
  • Position: #599 / 1476
  • Number of attempts: 1
Timur Celik
Twitter:

entered into 24 challenges

contributed 0 challenges