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

Python challenge - 79 entries

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

  • Best score: 8
  • Best player score: 53
  • Number of attempts: 7
Simple, Practical, and Common - 22736 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: 2
  • Best player score: 33
  • Number of attempts: 1
Box it - 619 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 9
comment and uncomment code inline - 721 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
  • Number of attempts: 2
remove lines containing the word "reader" - 935 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 2
unknown command - 102 entries

I want change 5 words

  • Best score: 6
  • Best player score: 7
  • Number of attempts: 5
V to the i - 3693 entries

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

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 3
Flip the bit - 51 entries

Change the specific 0 to a 1.

  • Best score: 8
  • Best player score: 8
  • Number of attempts: 2
Just the middle - 8769 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 3
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