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 - 32746 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: #6020 / 7235
  • Number of attempts: 1
V to the i - 4596 entries

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

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

easy stuff

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

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #11 / 1819
  • Number of attempts: 9
comment and uncomment code inline - 974 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: #276 / 290
  • Number of attempts: 2
Flip the bit - 96 entries

Change the specific 0 to a 1.

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

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2763 / 4088
  • Number of attempts: 3
Python challenge - 128 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: #24 / 39
  • Number of attempts: 7
unknown command - 142 entries

I want change 5 words

  • Best score: 7
  • Best player score: 7
  • Position: #43 / 71
  • 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