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 - 32953 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: #1533 / 7275
  • Number of attempts: 22
One number per line - 18394 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Position: #2167 / 3792
  • Number of attempts: 8
Applying same text modification in several lines - 2751 entries

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

  • Best score: 12
  • Best player score: 22
  • Position: #696 / 815
  • Number of attempts: 13
multiple cursor alternative - 1447 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: #64 / 369
  • Number of attempts: 23
From argument to object - 1262 entries

This task typifies those programmers endure while coding. This C-family pseudocode needs a function argument to be repurposed as an object call. Simply search and replace? Repeat a pattern of edits?

  • Best score: 17
  • Best player score: 20
  • Position: #308 / 417
  • Number of attempts: 10
Every other line - 2829 entries

AaAaAaA

  • Best score: 12
  • Best player score: 12
  • Position: #25 / 686
  • Number of attempts: 10
Number Sort - 286 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: 12
  • Position: #150 / 153
  • Number of attempts: 1
Make HTML List - 987 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 33
  • Position: #8 / 261
  • Number of attempts: 38
Extended Customer 2 - 44 entries

Format the chars

  • Best score: 47
  • Best player score: 111
  • Position: #19 / 19
  • Number of attempts: 5
convert yml into java pojo field - 818 entries

How fast vim can create fields for java pojo i.e class declaration referring to a (simple) yml file

  • Best score: 29
  • Best player score: 29
  • Position: #49 / 217
  • Number of attempts: 24
Collect List - 4184 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 30
  • Position: #1150 / 1167
  • Number of attempts: 1
I forgot quotes - 15740 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Position: #2609 / 4115
  • Number of attempts: 9
quotes inside quotes - 3030 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 21
  • Position: #985 / 1045
  • Number of attempts: 1
Words in parens - 12736 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 14
  • Position: #925 / 3919
  • Number of attempts: 17
replacing each line of a block selection - 2800 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 37
  • Position: #712 / 735
  • Number of attempts: 1
CptBong
Twitter:

entered into 15 challenges

contributed 0 challenges