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 - 33958 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: 35
  • Position: #6687 / 7498
  • Number of attempts: 1
prepend * to every non-blank line - 6388 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 17
  • Position: #1128 / 1559
  • Number of attempts: 2
Add semicolons - 10932 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1420 / 3091
  • Number of attempts: 1
multiple cursor alternative - 1556 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: 57
  • Position: #378 / 386
  • Number of attempts: 2
Search and Replace 0 - 5089 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 18
  • Position: #1437 / 1658
  • Number of attempts: 3
Vice versa - 7995 entries

Little role switching.

  • Best score: 12
  • Best player score: 32
  • Position: #2074 / 2151
  • Number of attempts: 2
I forgot quotes - 16176 entries

Oops.

  • Best score: 10
  • Best player score: 39
  • Position: #4187 / 4216
  • Number of attempts: 1
dione bigode
Twitter:

ela/dela

entered into 7 challenges

contributed 0 challenges