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 - 34031 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: #6682 / 7520
  • Number of attempts: 1
One number per line - 18907 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 22
  • Position: #2785 / 3907
  • Number of attempts: 1
V to the i - 4890 entries

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

  • Best score: 7
  • Best player score: 8
  • Position: #1429 / 1917
  • Number of attempts: 1
SCREAMING_SNAKE_CASE to Title Case - 1273 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: #196 / 266
  • Number of attempts: 1
Add semicolons - 10966 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Position: #1134 / 3100
  • Number of attempts: 3
remove lines containing the word "reader" - 3661 entries

easy stuff

  • Best score: 7
  • Best player score: 10
  • Position: #704 / 1189
  • Number of attempts: 2
Com(m)a Trouble - 3992 entries

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

  • Best score: 7
  • Best player score: 13
  • Position: #290 / 910
  • Number of attempts: 4
Box it - 8004 entries

Create a box around a line.

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

AaAaAaA

  • Best score: 7
  • Best player score: 18
  • Position: #583 / 713
  • Number of attempts: 2
Search and Replace 0 - 5170 entries

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

  • Best score: 7
  • Best player score: 12
  • Position: #624 / 1680
  • Number of attempts: 2
Just the middle - 11636 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #2962 / 4262
  • Number of attempts: 1
Line under headers - 2095 entries

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

  • Best score: 24
  • Best player score: 28
  • Position: #226 / 515
  • Number of attempts: 3
Delete to the end of the current line - 901 entries

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

  • Best score: 5
  • Best player score: 6
  • Position: #348 / 435
  • Number of attempts: 1
change parenthesis - 312 entries

change the pair of braces into a pair of parentheses

  • Best score: 9
  • Best player score: 10
  • Position: #136 / 166
  • Number of attempts: 1
I forgot quotes - 16255 entries

Oops.

  • Best score: 10
  • Best player score: 17
  • Position: #3077 / 4229
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10757 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2431 / 3717
  • Number of attempts: 2
quotes inside quotes - 3210 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: 7
  • Best player score: 15
  • Position: #503 / 1097
  • Number of attempts: 2
Words in parens - 13063 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1780 / 3995
  • Number of attempts: 3
switch variable - 5136 entries

how fast can you switch two variable ?

  • Best score: 9
  • Best player score: 12
  • Position: #980 / 1767
  • Number of attempts: 2
Whitespace, empty lines and tabs - 4083 entries

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

  • Best score: 7
  • Best player score: 23
  • Position: #404 / 872
  • Number of attempts: 2
Reformat/Refactor a Golfer Class - 7737 entries

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

  • Best score: 7
  • Best player score: 42
  • Position: #1069 / 1901
  • Number of attempts: 2
fewfold
Twitter:

entered into 21 challenges

contributed 0 challenges