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

Rural Post - 4231 entries

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

  • Best score: 9
  • Best player score: 12
  • Position: #494 / 1041
  • Number of attempts: 3
Yo To Hello - 1074 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Position: #107 / 494
  • Number of attempts: 1
Simple, Practical, and Common - 33100 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: 22
  • Best player score: 27
  • Position: #3973 / 7301
  • Number of attempts: 2
Get mail address from outlook format - 604 entries

Create a mail list space separated of mail list formatted by outlook

  • Best score: 15
  • Best player score: 20
  • Position: #144 / 190
  • Number of attempts: 3
prepend * to every non-blank line - 6096 entries

Prepend an asterisk to every non-blank line in the input file.

  • Best score: 10
  • Best player score: 18
  • Position: #1128 / 1489
  • Number of attempts: 2
Applying same text modification in several lines - 2792 entries

Remove identical text at the beginning of several lines and the closing parenthesis.

  • Best score: 12
  • Best player score: 14
  • Position: #446 / 826
  • Number of attempts: 6
Add semicolons - 10716 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 12
  • Position: #1865 / 3022
  • Number of attempts: 1
Split line with dots - 2113 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 26
  • Position: #558 / 625
  • Number of attempts: 2
remove lines containing the word "reader" - 3480 entries

easy stuff

  • Best score: 9
  • Best player score: 11
  • Position: #894 / 1127
  • Number of attempts: 3
Com(m)a Trouble - 3496 entries

Someone was real stupid when placing his commas. Can you fix it?

  • Best score: 12
  • Best player score: 16
  • Position: #466 / 784
  • Number of attempts: 2
multiple cursor alternative - 1453 entries

from: https://www.reddit.com/r/vim/comments/6w5pfa/crosspost_from_remacs_how_would_you_do_this_in_vim/

  • Best score: 19
  • Best player score: 28
  • Position: #321 / 372
  • Number of attempts: 4
Every other line - 2856 entries

AaAaAaA

  • Best score: 12
  • Best player score: 22
  • Position: #641 / 691
  • Number of attempts: 2
Copy three lines - 2824 entries

If the site is up (by some miracle), make the text under every header identical.

  • Best score: 13
  • Best player score: 18
  • Position: #348 / 630
  • Number of attempts: 3
Increment each number - 958 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 21
  • Position: #169 / 237
  • Number of attempts: 2
Put the months in order - 922 entries

Our contractor thought that months should be in alphabetical order. Put them in calendar order please.

  • Best score: 20
  • Best player score: 47
  • Position: #105 / 156
  • Number of attempts: 3
-a-b-c- - 3142 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 18
  • Position: #1039 / 1120
  • Number of attempts: 1
attr_aligner - 3403 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 40
  • Position: #611 / 686
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 6223 entries

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

  • Best score: 32
  • Best player score: 55
  • Position: #1375 / 1532
  • Number of attempts: 1
Ed Leafe
Twitter:

Photographer. Python developer extraordinaire. I speak my mind, and I don't speak for anyone else.

entered into 18 challenges

contributed 0 challenges