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 - 32904 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: 33
  • Position: #6047 / 7270
  • Number of attempts: 1
V to the i - 4639 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #632 / 1856
  • Number of attempts: 3
remove lines containing the word "reader" - 3454 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #131 / 1121
  • Number of attempts: 2
Box it - 7680 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #11 / 1835
  • Number of attempts: 9
comment and uncomment code inline - 995 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: 19
  • Position: #282 / 296
  • Number of attempts: 2
Flip the bit - 108 entries

Change the specific 0 to a 1.

  • Best score: 8
  • Best player score: 8
  • Position: #13 / 64
  • Number of attempts: 2
Just the middle - 11136 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2771 / 4112
  • Number of attempts: 3
Python challenge - 140 entries

Change the types of the variables in the list from str to float, while keeping the truncation.

  • Best score: 31
  • Best player score: 53
  • Position: #26 / 41
  • Number of attempts: 7
unknown command - 143 entries

I want change 5 words

  • Best score: 7
  • Best player score: 7
  • Position: #43 / 72
  • Number of attempts: 5
JT-Development.com
Twitter:

I'm Julius and I'm into science, nature, photograph, technology, and all sorts of stuff guys are into.

entered into 9 challenges

contributed 0 challenges