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

Change to ascending order - 139 entries

Change each line of numbers consistently from descending to ascending order.

  • Best score: 17
  • Best player score: 17
  • Position: #2 / 39
  • Number of attempts: 7
Swap columns and transform to CSV format - 70 entries

Turn this spreadsheet output into a CSV file but first swap the columns

  • Best score: 16
  • Best player score: 16
  • Position: #2 / 28
  • Number of attempts: 4
Search and Replace 0 - 4989 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #742 / 1624
  • Number of attempts: 3
Braces or Brackets? - 1018 entries

Someone forgot whether to use braces or brackets and you have to clean up their code!

  • Best score: 34
  • Best player score: 34
  • Position: #41 / 316
  • Number of attempts: 10
Simple text editing with Vim - 12815 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #729 / 3696
  • Number of attempts: 5
Reformat/Refactor a Golfer Class - 6984 entries

A simple case of removing unneeded code and fixing broken indentation.

  • Best score: 28
  • Best player score: 36
  • Position: #486 / 1708
  • Number of attempts: 4
xscript71
Github:

entered into 6 challenges

contributed 0 challenges