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! - 2347 entries

Fix the shell script with the fewest keystrokes!

  • Best score: 26
  • Best player score: 31
  • Position: #246 / 543
  • Number of attempts: 7
Put a newline after every 10 lines in vim - 1581 entries

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

  • Best score: 10
  • Best player score: 13
  • Position: #321 / 527
  • Number of attempts: 2
hello-world-vimgolf - 2366 entries

Simple number generation

  • Best score: 10
  • Best player score: 10
  • Position: #171 / 669
  • Number of attempts: 6
Inverting Lines - 1837 entries

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

  • Best score: 10
  • Best player score: 10
  • Position: #155 / 498
  • Number of attempts: 6
swap number pairs - 2011 entries

Swap the numbers in a bunch of 2-element arrays.

  • Best score: 16
  • Best player score: 30
  • Position: #235 / 370
  • Number of attempts: 5
Rural Post - 4368 entries

Simple challenge to remove all but the post code on each line

  • Best score: 9
  • Best player score: 10
  • Position: #442 / 1072
  • Number of attempts: 5
NicolasWebDev
Twitter:

entered into 6 challenges

contributed 0 challenges