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

Inverting Lines - 1932 entries

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

  • Best score: 10
  • Best player score: 12
  • Position: #277 / 518
  • Number of attempts: 5
Simple, Practical, and Common - 33866 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: #4044 / 7474
  • Number of attempts: 2
prepend * to every non-blank line - 6366 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #478 / 1555
  • Number of attempts: 5
Aliases for cd - 881 entries

Create these beautiful aliases with as few strokes as possible. Are you up for the challenge?

  • Best score: 30
  • Best player score: 62
  • Position: #129 / 156
  • Number of attempts: 1
V to the i - 4830 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #713 / 1903
  • Number of attempts: 2
Add semicolons - 10916 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 13
  • Position: #2042 / 3085
  • Number of attempts: 2
remove lines containing the word "reader" - 3622 entries

easy stuff

  • Best score: 9
  • Best player score: 9
  • Position: #364 / 1177
  • Number of attempts: 1
Com(m)a Trouble - 3941 entries

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

  • Best score: 12
  • Best player score: 17
  • Position: #581 / 892
  • Number of attempts: 3
Box it - 7962 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 26
  • Position: #1101 / 1891
  • Number of attempts: 2
Every other line - 2925 entries

AaAaAaA

  • Best score: 12
  • Best player score: 12
  • Position: #56 / 707
  • Number of attempts: 7
Copy three lines - 2882 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 / 642
  • Number of attempts: 3
Vice versa - 7974 entries

Little role switching.

  • Best score: 12
  • Best player score: 15
  • Position: #1115 / 2146
  • Number of attempts: 5
One to Ten - 2241 entries

Generate the sequence of numbers from 1 to 10, one number per line. Inspired by this Reddit thread: https://redd.it/ak4it2

  • Best score: 12
  • Best player score: 20
  • Position: #577 / 682
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10713 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #1491 / 3700
  • Number of attempts: 3
switch variable - 5094 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1250 / 1754
  • Number of attempts: 1
James Rayman
Twitter:

I made this account to play VimGolf

entered into 15 challenges

contributed 0 challenges