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

I forgot quotes - 14703 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 6
V to the i - 4430 entries

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

  • Best score: 7
  • Best player score: 9
  • Number of attempts: 1
Yo To Hello - 524 entries

Simply Turn Yo To Hello

  • Best score: 8
  • Best player score: 10
  • Number of attempts: 1
Delete to the end of the current line - 687 entries

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

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 2
Simple, Practical, and Common - 30763 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
  • Number of attempts: 7
Box it - 6584 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 23
  • Number of attempts: 2
Add semicolons - 8546 entries

Simply add a semicolon at the end of each line

  • Best score: 8
  • Best player score: 10
  • Number of attempts: 3
comment and uncomment code inline - 947 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
  • Number of attempts: 4
prepend * to every non-blank line - 3811 entries

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

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 11
xrandr outputs and dashes - 330 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
  • Number of attempts: 1
もりを
Twitter:

競プロ(morio__) ぷよぷよ(Switch)

entered into 10 challenges

contributed 0 challenges