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 - 32743 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: #1219 / 7235
  • Number of attempts: 7
Swap values - 4390 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Position: #204 / 1230
  • Number of attempts: 8
One number per line - 18219 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #364 / 3758
  • Number of attempts: 10
Applying same text modification in several lines - 2698 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 12
  • Best player score: 16
  • Position: #510 / 802
  • Number of attempts: 1
Bad Copy Syntax - 1882 entries

Copy should be from right to left, but sometimes you type it wrong.

  • Best score: 18
  • Best player score: 203
  • Position: #478 / 478
  • Number of attempts: 1
Box it - 7622 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 30
  • Position: #1329 / 1819
  • Number of attempts: 2
multiple cursor alternative - 1413 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: 19
  • Position: #44 / 363
  • Number of attempts: 7
Just the middle - 11078 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Position: #1043 / 4089
  • Number of attempts: 3
Wrap text in quotes - 322 entries

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

  • Best score: 16
  • Best player score: 16
  • Position: #36 / 110
  • Number of attempts: 5
Vice versa - 7413 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #340 / 2010
  • Number of attempts: 8
Line under headers - 1852 entries

Put a line under each header, and remove the other markdown formatting.

  • Best score: 24
  • Best player score: 34
  • Position: #318 / 459
  • Number of attempts: 1
-a-b-c- - 3077 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Position: #260 / 1099
  • Number of attempts: 5
Words in parens - 12677 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1602 / 3903
  • Number of attempts: 2
Urbanovics P├ęter
Twitter:

entered into 13 challenges

contributed 0 challenges