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

Put a newline after every 10 lines in vim - 1646 entries

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

  • Best score: 10
  • Best player score: 17
  • Position: #493 / 548
  • Number of attempts: 2
hello-world-vimgolf - 2472 entries

Simple number generation

  • Best score: 10
  • Best player score: 26
  • Position: #641 / 699
  • Number of attempts: 1
Plotting some variables in python - 1604 entries

4 sets of (x,y) variables to plot. Just increment the numbers! Well, let's change the colors of the lines as well. Oh and we meant to plot the absolute values of course.

  • Best score: 34
  • Best player score: 50
  • Position: #207 / 344
  • Number of attempts: 3
Search and Replace 0 - 4847 entries

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

  • Best score: 12
  • Best player score: 16
  • Position: #1225 / 1603
  • Number of attempts: 1
switch variable - 5045 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 15
  • Position: #1539 / 1742
  • Number of attempts: 4
Increment, increment, increment.... - 668 entries

Vim likes macros

  • Best score: 10
  • Best player score: 24
  • Position: #394 / 404
  • Number of attempts: 1
Simple text editing with Vim - 12467 entries

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

  • Best score: 13
  • Best player score: 17
  • Position: #2488 / 3621
  • Number of attempts: 3
Reformat/Refactor a Golfer Class - 6736 entries

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

  • Best score: 31
  • Best player score: 49
  • Position: #1332 / 1651
  • Number of attempts: 3
Bas
Twitter:

entered into 8 challenges

contributed 0 challenges