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

Simple, Practical, and Common - 33757 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: 35
  • Position: #6629 / 7450
  • Number of attempts: 1
One number per line - 18784 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 22
  • Position: #2769 / 3878
  • Number of attempts: 1
V to the i - 4824 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1421 / 1899
  • Number of attempts: 1
SCREAMING_SNAKE_CASE to Title Case - 1237 entries

Convert strings in SCREAMING_SNAKE_CASE to Title Case. Examples: EMPLOYEE_NAME -> Employee Name REVENUE_YEAR_TO_DATE -> Revenue Year To Date SALARY -> Salary

  • Best score: 19
  • Best player score: 31
  • Position: #190 / 256
  • Number of attempts: 1
Add semicolons - 10899 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1124 / 3078
  • Number of attempts: 3
remove lines containing the word "reader" - 3614 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Position: #695 / 1173
  • Number of attempts: 2
Com(m)a Trouble - 3897 entries

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

  • Best score: 12
  • Best player score: 13
  • Position: #283 / 884
  • Number of attempts: 4
Box it - 7954 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Position: #230 / 1886
  • Number of attempts: 5
Every other line - 2922 entries

AaAaAaA

  • Best score: 12
  • Best player score: 18
  • Position: #578 / 706
  • Number of attempts: 2
Search and Replace 0 - 5007 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #623 / 1631
  • Number of attempts: 2
Just the middle - 11500 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2950 / 4216
  • Number of attempts: 1
Line under headers - 2072 entries

Put a line under each header, and remove the other markdown formatting.

  • Best score: 24
  • Best player score: 28
  • Position: #223 / 510
  • Number of attempts: 3
Delete to the end of the current line - 849 entries

Delete to the end of the current line, but keep the character under the cursor.

  • Best score: 5
  • Best player score: 6
  • Position: #338 / 407
  • Number of attempts: 1
change parenthesis - 299 entries

change the pair of braces into a pair of parentheses

  • Best score: 9
  • Best player score: 10
  • Position: #134 / 162
  • Number of attempts: 1
I forgot quotes - 16051 entries

Oops.

  • Best score: 10
  • Best player score: 17
  • Position: #3055 / 4194
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10699 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2420 / 3695
  • Number of attempts: 2
quotes inside quotes - 3182 entries

taken from tip 85 of the very good book 'Practical Vim: Edit Text at the Speed of Thought' ! I'd be interested what people use :)

  • Best score: 14
  • Best player score: 15
  • Position: #497 / 1085
  • Number of attempts: 2
Words in parens - 12969 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1766 / 3970
  • Number of attempts: 3
switch variable - 5085 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #970 / 1750
  • Number of attempts: 2
Whitespace, empty lines and tabs - 3793 entries

Convert tabs to spaces, strip empty lines and trailing whitespace.

  • Best score: 16
  • Best player score: 23
  • Position: #372 / 814
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 7230 entries

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

  • Best score: 10
  • Best player score: 42
  • Position: #1013 / 1779
  • Number of attempts: 2
fewfold
Twitter:

entered into 21 challenges

contributed 0 challenges