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

Make HTML List - 875 entries

Turn the comma separated list into an unordered html list.

  • Best score: 33
  • Best player score: 33
  • Number of attempts: 38
convert yml into java pojo field - 620 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
  • Number of attempts: 24
Words in parens - 10842 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 17
From argument to object - 1051 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
  • Number of attempts: 10
I forgot quotes - 11361 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Number of attempts: 9
replacing each line of a block selection - 2475 entries

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

  • Best score: 17
  • Best player score: 37
  • Number of attempts: 1
simple format - 2369 entries

make it look better.

  • Best score: 20
  • Best player score: 23
  • Number of attempts: 18
quotes inside quotes - 2726 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: 2
  • Best player score: 21
  • Number of attempts: 1
Extended Customer 2 - 44 entries

Format the chars

  • Best score: 47
  • Best player score: 111
  • Number of attempts: 5
Every other line - 2028 entries

AaAaAaA

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 10
Number Sort - 235 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
  • Number of attempts: 1
One number per line - 12128 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 20
  • Number of attempts: 8
multiple cursor alternative - 1029 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
  • Number of attempts: 23
Applying same text modification in several lines - 1456 entries

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

  • Best score: 4
  • Best player score: 22
  • Number of attempts: 13
Collect List - 3399 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 30
  • Number of attempts: 1
Simple, Practical, and Common - 24014 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: 2
  • Best player score: 22
  • Number of attempts: 22
CptBong
Twitter:

entered into 16 challenges

contributed 0 challenges