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 text editing with Vim - 11093 entries

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

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 7
Hash staircase - 38 entries

Can you use a strategy to come up with this pattern?

  • Best score: 21
  • Best player score: 22
  • Number of attempts: 1
remove lines containing the word "reader" - 3022 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 4
quotes inside quotes - 2952 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 17
  • Number of attempts: 1
Search and Replace 0 - 4450 entries

Replace every instance of 'aaa' with 'xaaax'.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 4
One number per line - 16843 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 26
  • Number of attempts: 1
One to Ten - 1789 entries

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 7
attr_aligner - 3246 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 27
  • Number of attempts: 4
Increment each number - 775 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 52
  • Number of attempts: 2
Just the middle - 10549 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 2
Christopher Currens
Twitter:

Engineer @ Microsoft

entered into 10 challenges

contributed 0 challenges