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 - 33621 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: #244 / 7422
  • Number of attempts: 5
Swap values - 4616 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 11
  • Position: #125 / 1268
  • Number of attempts: 6
One number per line - 18732 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #141 / 3865
  • Number of attempts: 5
multiple cursor alternative - 1519 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: 21
  • Position: #199 / 380
  • Number of attempts: 4
Just the middle - 11457 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1526 / 4198
  • Number of attempts: 2
Un"finnish"ed Work - 116 entries

Replace å by a, ä by a and ö by o.

  • Best score: 14
  • Best player score: 15
  • Position: #23 / 60
  • Number of attempts: 1
Wrap text in quotes - 368 entries

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

  • Best score: 16
  • Best player score: 17
  • Position: #64 / 122
  • Number of attempts: 3
Vice versa - 7907 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #108 / 2128
  • Number of attempts: 5
Sort files from hosts - 188 entries

Resume files by host. I hope you enjoy with this challenge

  • Best score: 15
  • Best player score: 15
  • Position: #10 / 76
  • Number of attempts: 3
Order and join - 983 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 10
  • Position: #13 / 259
  • Number of attempts: 5
Test everything! - 186 entries

... and build the desired input data structure. Transform a list of values into a non-trivial format.

  • Best score: 22
  • Best player score: 32
  • Position: #28 / 54
  • Number of attempts: 1
Don't know what this is - 2022 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 12
  • Position: #205 / 585
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10666 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1044 / 3684
  • Number of attempts: 2
YNWP
Twitter:

アイマスは人生。春香→やよいを経てSP以降は響P。でも基本的にみんな好き。

entered into 13 challenges

contributed 0 challenges