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

One number per line - 18840 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Position: #729 / 3893
  • Number of attempts: 10
Add semicolons - 10923 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 10
  • Position: #158 / 3087
  • Number of attempts: 9
Box it - 7987 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #170 / 1895
  • Number of attempts: 12
I forgot quotes - 16127 entries

Oops.

  • Best score: 10
  • Best player score: 15
  • Position: #2126 / 4208
  • Number of attempts: 1
Words in parens - 13005 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1220 / 3979
  • Number of attempts: 4
Delete unwanted lines - 431 entries

Delete all lines which does not end in "o.."

  • Best score: 9
  • Best player score: 9
  • Position: #18 / 234
  • Number of attempts: 4
replacing each line of a block selection - 3026 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 25
  • Position: #526 / 783
  • Number of attempts: 2
switch variable - 5101 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #750 / 1756
  • Number of attempts: 4
Shebangs for all - 2062 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 14
  • Position: #224 / 525
  • Number of attempts: 4
Simple text editing with Vim - 13423 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #51 / 3848
  • Number of attempts: 7
omahn
Twitter:

Consultant at @scalefactory - AWS Solutions Architect/Security Speciality. Geek. Railway nerd. Free software advocate.

entered into 10 challenges

contributed 0 challenges