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 - 33613 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 / 7417
  • Number of attempts: 7
Swap values inside brackets - 2493 entries

Easy challenge.

  • Best score: 14
  • Best player score: 17
  • Position: #293 / 578
  • Number of attempts: 6
Number Sort - 314 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 / 166
  • Number of attempts: 1
On Being Stylish - 81 entries

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

  • Best score: 33
  • Best player score: 56
  • Position: #20 / 21
  • Number of attempts: 1
Basic renumbering - 5648 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 17
  • Position: #599 / 1264
  • Number of attempts: 1
Sorting a glossary - 131 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: #77 / 81
  • Number of attempts: 1
Generate a list of numbers - 295 entries

Please generate list of numbers from 1 to 20.

  • Best score: 14
  • Best player score: 14
  • Position: #51 / 140
  • Number of attempts: 1
Assign numbers to fields - 116 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: #45 / 62
  • Number of attempts: 1
Swap assigned value - 647 entries

Simple problem but looking for interesting solutions.

  • Best score: 10
  • Best player score: 11
  • Position: #184 / 254
  • Number of attempts: 2
Binary and Increment - 56 entries

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

  • Best score: 22
  • Best player score: 23
  • Position: #4 / 20
  • Number of attempts: 3
Change your calendar - 392 entries

Happy New Year!

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

Based on "The name of the game".

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

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 16
  • Position: #123 / 444
  • Number of attempts: 4
Lisp Condense - 460 entries

Reduce 4 cons selection operations down to one function call.

  • Best score: 13
  • Best player score: 14
  • Position: #85 / 158
  • Number of attempts: 3
120 Degrees - 493 entries

Rotate that triangle.

  • Best score: 14
  • Best player score: 26
  • Position: #121 / 145
  • Number of attempts: 1
Counting in binary - 526 entries

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

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

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

  • Best score: 25
  • Best player score: 38
  • Position: #26 / 30
  • Number of attempts: 1
Vertical Limit - 2538 entries

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

  • Best score: 21
  • Best player score: 23
  • Position: #250 / 754
  • Number of attempts: 2
The meaning - 575 entries

Numbers are fun!

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

Create a multiplication table.

  • Best score: 31
  • Best player score: 65
  • Position: #28 / 68
  • Number of attempts: 1
A Simple One - 1048 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 / 663
  • Number of attempts: 1
Round Round - 299 entries

Round Round

  • Best score: 19
  • Best player score: 43
  • Position: #42 / 87
  • Number of attempts: 3
Increment, increment, increment.... - 687 entries

Vim likes macros

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

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

  • Best score: 28
  • Best player score: 38
  • Position: #649 / 1701
  • Number of attempts: 1
Timur Celik
Twitter:

entered into 24 challenges

contributed 0 challenges