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

Python Hello World! Reformatting - 808 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 43
  • Number of attempts: 2
Vim's not included features - 150 entries

Filter not included (-) features in a hypothetical installation of vim.

  • Best score: 23
  • Best player score: 26
  • Number of attempts: 4
Assign numbers to fields - 80 entries

You are given a list of space-separated strings. Add an increasing numeric prefix to each one.

  • Best score: 19
  • Best player score: 19
  • Number of attempts: 2
Search and Replace 0 - 3766 entries

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

  • Best score: 12
  • Best player score: 16
  • Number of attempts: 2
-a-b-c- - 2279 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 13
  • Number of attempts: 4
Words in parens - 10118 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 9
Just the middle - 8223 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 4
Count both ways - 840 entries

Right AND down.

  • Best score: 13
  • Best player score: 17
  • Number of attempts: 2
Basic renumbering - 3930 entries

Renumbering Basic.

  • Best score: 2
  • Best player score: 14
  • Number of attempts: 8
Add to end of each line... kinda - 254 entries

Visual-block mode can be used to add something to the end of each line, even if they are of differing lengths. However, what if it's not quite at the end?

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 2
Shebangs for all - 1542 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: 11
  • Number of attempts: 8
A HAPPY NEW YEAR 2014 ! - 8842 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 3
V to the i - 3389 entries

Input is 99 V's. Output is 100 i's.

  • Best score: 7
  • Best player score: 7
  • Number of attempts: 2
I forgot quotes - 9642 entries

Oops.

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 8
Almost encrypted - 162 entries

Convert the first paragraph to be even less readable.

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 2
Simple, Practical, and Common - 19708 entries

Simple things we do all the time should be able to be done with very few keystrokes, but sometimes I find something I need to do makes me go, "There MUST be a better way." This challenge is just a simple movement and entering text at a certain place.

  • Best score: 13
  • Best player score: 22
  • Number of attempts: 7
readability - 278 entries

Make the code readable by adding some spaces

  • Best score: 18
  • Best player score: 18
  • Number of attempts: 2
Collect List - 3005 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 1
Don't know what this is - 1542 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 11
  • Number of attempts: 7
Gray area - 601 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 4
Vice versa - 5076 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 6
T A
Twitter:

entered into 21 challenges

contributed 0 challenges