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

Fix the shell script! - 787 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 47
  • Position: #152 / 200
  • Number of attempts: 1
Put a newline after every 10 lines in vim - 839 entries

Goal is to put a newline after every 10 lines in vim.

  • Best score: 10
  • Best player score: 15
  • Position: #247 / 297
  • Number of attempts: 2
Inverting Lines - 1268 entries

A simple challenge to invert all lines, except the first.

  • Best score: 10
  • Best player score: 19
  • Position: #314 / 353
  • Number of attempts: 2
Extend shell script - 81 entries

Just add some more stuff

  • Best score: 37
  • Best player score: 99
  • Position: #30 / 31
  • Number of attempts: 1
ssh config skills - 196 entries

Parse output from `kuebctl get no -o wide` into an .ssh/config file!

  • Best score: 41
  • Best player score: 96
  • Position: #44 / 48
  • Number of attempts: 3
Simple, Practical, and Common - 32879 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: 31
  • Position: #5608 / 7266
  • Number of attempts: 3
Fix the XML - 958 entries

The challenge consists in having a valid xml from an incomplete source.

  • Best score: 18
  • Best player score: 43
  • Position: #270 / 279
  • Number of attempts: 1
abcd > a b c d - 259 entries

transform the single spaces into 4 spaces repeat for each line

  • Best score: 15
  • Best player score: 16
  • Position: #191 / 203
  • Number of attempts: 2
Simple text editing with Vim - 11589 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 17
  • Position: #2352 / 3402
  • Number of attempts: 3
Никита Семёнов
Twitter:

entered into 9 challenges

contributed 0 challenges