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 - 1954 entries

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

  • Best score: 10
  • Best player score: 12
  • Position: #279 / 523
  • Number of attempts: 5
Simple, Practical, and Common - 33966 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: #4053 / 7501
  • Number of attempts: 2
prepend * to every non-blank line - 6388 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #481 / 1559
  • Number of attempts: 5
Aliases for cd - 908 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: #130 / 158
  • Number of attempts: 1
V to the i - 4853 entries

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

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

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 13
  • Position: #2047 / 3091
  • Number of attempts: 2
remove lines containing the word "reader" - 3643 entries

easy stuff

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

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

  • Best score: 12
  • Best player score: 17
  • Position: #589 / 908
  • Number of attempts: 3
Box it - 7997 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 26
  • Position: #1105 / 1897
  • Number of attempts: 2
Every other line - 2945 entries

AaAaAaA

  • Best score: 12
  • Best player score: 12
  • Position: #56 / 710
  • Number of attempts: 7
Copy three lines - 2909 entries

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

  • Best score: 13
  • Best player score: 18
  • Position: #350 / 644
  • Number of attempts: 3
Vice versa - 7997 entries

Little role switching.

  • Best score: 12
  • Best player score: 15
  • Position: #1118 / 2152
  • Number of attempts: 5
One to Ten - 2247 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: #579 / 685
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10748 entries

A HAPPY NEW YEAR 2014 !

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

how fast can you switch two variable ?

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

I made this account to play VimGolf

entered into 15 challenges

contributed 0 challenges