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

attr_aligner - 3040 entries

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

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

Increment each number individually by one

  • Best score: 15
  • Best player score: 52
  • Number of attempts: 2
quotes inside quotes - 2807 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
Hash staircase - 34 entries

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

  • Best score: 21
  • Best player score: 22
  • Number of attempts: 1
Simple text editing with Vim - 10544 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
remove lines containing the word "reader" - 1881 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Number of attempts: 4
Just the middle - 9428 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 2
One to Ten - 1099 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
One number per line - 13418 entries

Just give me the numbers.

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

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

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 4
Christopher Currens
Twitter:

Engineer @ Microsoft

entered into 10 challenges

contributed 0 challenges