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

Rural Post - 4515 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 9
  • Position: #10 / 1106
  • Number of attempts: 4
xrandr outputs and dashes - 710 entries

uh oh, different video drivers identify display outputs with more dashes. Quick, need to change this xrandr script!

  • Best score: 12
  • Best player score: 12
  • Position: #28 / 223
  • Number of attempts: 1
Yo To Hello - 1137 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 10
  • Position: #121 / 528
  • Number of attempts: 1
Simple, Practical, and Common - 33722 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: #2168 / 7442
  • Number of attempts: 7
prepend * to every non-blank line - 6332 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #201 / 1545
  • Number of attempts: 11
V to the i - 4813 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 9
  • Position: #1734 / 1897
  • Number of attempts: 1
Add semicolons - 10881 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #561 / 3072
  • Number of attempts: 3
Box it - 7916 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Position: #755 / 1881
  • Number of attempts: 2
comment and uncomment code inline - 1124 entries

It's very useful to be able to comment out a block of code in a quick edit. And likewise to uncomment the code. This operation often involves multi-line stanzas and even large blocks. With just line-wise navigation and insert mode this would cost you about 4 keystrokes per line. Master this hole of VimGolf and you'll quickly drop your key count in day to day Vim as well.

  • Best score: 9
  • Best player score: 9
  • Position: #140 / 323
  • Number of attempts: 4
Delete to the end of the current line - 829 entries

Delete to the end of the current line, but keep the character under the cursor.

  • Best score: 5
  • Best player score: 5
  • Position: #232 / 400
  • Number of attempts: 2
I forgot quotes - 16014 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Position: #1038 / 4188
  • Number of attempts: 6
もりを
Twitter:

競プロ(morio__) / ぷよぷよ(@morio_puyo)

entered into 11 challenges

contributed 0 challenges