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 - 33742 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: 25
  • Position: #3273 / 7447
  • Number of attempts: 4
Swap values - 4643 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 15
  • Position: #815 / 1274
  • Number of attempts: 1
One number per line - 18776 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 19
  • Position: #1562 / 3875
  • Number of attempts: 3
multiple cursor alternative - 1521 entries

from: https://www.reddit.com/r/vim/comments/6w5pfa/crosspost_from_remacs_how_would_you_do_this_in_vim/

  • Best score: 19
  • Best player score: 20
  • Position: #100 / 381
  • Number of attempts: 9
Every other line - 2916 entries

AaAaAaA

  • Best score: 12
  • Best player score: 13
  • Position: #107 / 705
  • Number of attempts: 5
Just the middle - 11495 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1771 / 4213
  • Number of attempts: 3
Basic renumbering - 5683 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 20
  • Position: #792 / 1269
  • Number of attempts: 2
underscore_to_camelCase - 173 entries

Pointy haired boss decided we need to switch to camelCase. Let's get this over with.

  • Best score: 14
  • Best player score: 15
  • Position: #45 / 82
  • Number of attempts: 1
Paragraph sort - 450 entries

My large herbivorous mammals, Vim commands, and POSIX utilities need to be sorted separately.

  • Best score: 14
  • Best player score: 18
  • Position: #81 / 125
  • Number of attempts: 3
Mirrored text - 185 entries

backward and forward, and long enough to be challenging

  • Best score: 14
  • Best player score: 18
  • Position: #65 / 72
  • Number of attempts: 1
Angular naming conventions - 320 entries

In angular, a directive name follows the camelCase convention. When the directive is used in an HTML template, the words are instead separated by a dash. Go from to the other the fastest!

  • Best score: 18
  • Best player score: 19
  • Position: #50 / 118
  • Number of attempts: 1
Collect List - 4308 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 16
  • Position: #760 / 1192
  • Number of attempts: 3
camel riding - 793 entries

add a prefix on some camelCase variables

  • Best score: 15
  • Best player score: 17
  • Position: #165 / 281
  • Number of attempts: 3
swap or reverse - 126 entries

Try to swap or reverse the line as needed.

  • Best score: 16
  • Best player score: 17
  • Position: #58 / 69
  • Number of attempts: 3
readability - 327 entries

Make the code readable by adding some spaces

  • Best score: 18
  • Best player score: 19
  • Position: #91 / 152
  • Number of attempts: 1
Fix the XML - 1039 entries

The challenge consists in having a valid xml from an incomplete source.

  • Best score: 18
  • Best player score: 23
  • Position: #102 / 290
  • Number of attempts: 1
I forgot quotes - 16038 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2093 / 4192
  • Number of attempts: 2
-a-b-c- - 3216 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 16
  • Position: #790 / 1138
  • Number of attempts: 1
Words in parens - 12967 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1455 / 3969
  • Number of attempts: 2
ushumpei
Twitter:

いっぱいコードをかいていきたいです

entered into 19 challenges

contributed 0 challenges