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 - 28817 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
  • Number of attempts: 1
SCREAMING_SNAKE_CASE to Title Case - 738 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
  • Number of attempts: 1
Line under headers - 1208 entries

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

  • Best score: 25
  • Best player score: 28
  • Number of attempts: 3
Whitespace, empty lines and tabs - 2688 entries

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

  • Best score: 16
  • Best player score: 23
  • Number of attempts: 2
One number per line - 15558 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 22
  • Number of attempts: 1
Box it - 5487 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 5
Every other line - 2387 entries

AaAaAaA

  • Best score: 12
  • Best player score: 18
  • Number of attempts: 2
I forgot quotes - 13734 entries

Oops.

  • Best score: 10
  • Best player score: 17
  • Number of attempts: 1
Words in parens - 11797 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 3
Just the middle - 10097 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
quotes inside quotes - 2909 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
  • Number of attempts: 2
change parenthesis - 213 entries

change the pair of braces into a pair of parentheses

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 1
Reformat/Refactor a Golfer Class - 5628 entries

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

  • Best score: 32
  • Best player score: 42
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 9964 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 2
Delete to the end of the current line - 619 entries

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

  • Best score: 5
  • Best player score: 6
  • Number of attempts: 1
remove lines containing the word "reader" - 2591 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 2
Add semicolons - 6772 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 3
Search and Replace 0 - 4388 entries

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

  • Best score: 12
  • Best player score: 12
  • Number of attempts: 2
V to the i - 4253 entries

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

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 1
switch variable - 4541 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 2
Com(m)a Trouble - 2536 entries

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

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 4
fewfold
Twitter:

entered into 21 challenges

contributed 0 challenges