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

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

  • Best score: 10
  • Best player score: 12
  • Position: #279 / 522
  • Number of attempts: 5
Simple, Practical, and Common - 33929 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: #4049 / 7489
  • Number of attempts: 2
prepend * to every non-blank line - 6380 entries

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

  • Best score: 10
  • Best player score: 11
  • Position: #480 / 1557
  • 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 - 4833 entries

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

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

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 13
  • Position: #2044 / 3087
  • Number of attempts: 2
remove lines containing the word "reader" - 3631 entries

easy stuff

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

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

  • Best score: 12
  • Best player score: 17
  • Position: #586 / 901
  • Number of attempts: 3
Box it - 7987 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 26
  • Position: #1104 / 1895
  • 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 - 7981 entries

Little role switching.

  • Best score: 12
  • Best player score: 15
  • Position: #1116 / 2147
  • Number of attempts: 5
One to Ten - 2243 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: #578 / 683
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10720 entries

A HAPPY NEW YEAR 2014 !

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

how fast can you switch two variable ?

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

I made this account to play VimGolf

entered into 15 challenges

contributed 0 challenges