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

Swap values inside brackets - 2165 entries

Easy challenge.

  • Best score: 14
  • Best player score: 15
  • Number of attempts: 4
Add semicolons - 8264 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10151 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 1
Simple text editing with Vim - 11067 entries

Make the pairs of lines match up by making each second line same as first

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 2
-a-b-c- - 2902 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 14
  • Number of attempts: 4
V to the i - 4380 entries

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

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 2
remove lines containing the word "reader" - 2948 entries

easy stuff

  • Best score: 9
  • Best player score: 10
  • Number of attempts: 2
Yo To Hello - 409 entries

Simply Turn Yo To Hello

  • Best score: 10
  • Best player score: 10
  • Number of attempts: 1
replace 2nd column blanks with values in same column if blank - 199 entries

Where ,SOMELOGB and ,SOMELOGC replaces each /r carriage return if 2nd column is blank. The replace only happens if 2nd column is blank though and should replace up to the non blank row.

  • Best score: 15
  • Best player score: 15
  • Number of attempts: 3
I forgot quotes - 14512 entries

Oops.

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 5
Just the middle - 10463 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Number of attempts: 3
Two pairs of cluster of letters creates word - 644 entries

Clean and group.

  • Best score: 17
  • Best player score: 18
  • Number of attempts: 10
Double and switch - 36 entries

Aaaanother case switcher

  • Best score: 18
  • Best player score: 20
  • Number of attempts: 1
Order and join - 811 entries

There's something special about the input order.

  • Best score: 10
  • Best player score: 11
  • Number of attempts: 4
Team names - 1637 entries

The team names are misspelled.

  • Best score: 16
  • Best player score: 16
  • Number of attempts: 4
Swap values - 4199 entries

Well, swap the values...

  • Best score: 11
  • Best player score: 12
  • Number of attempts: 2
Replace pattern with 1, 2, 3, ... on each line - 418 entries

For each line replace a search pattern (in this case $) with numbers starting at 1 and then increasing by 1 for each replaced match. a$b$c$ -> a0b1c2

  • Best score: 21
  • Best player score: 22
  • Number of attempts: 11
Box it - 6380 entries

Create a box around a line.

  • Best score: 21
  • Best player score: 21
  • Number of attempts: 8
Delete to the end of the current line - 677 entries

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

  • Best score: 5
  • Best player score: 5
  • Number of attempts: 2
Vice versa - 6936 entries

Little role switching.

  • Best score: 12
  • Best player score: 13
  • Number of attempts: 5
One number per line - 16686 entries

Just give me the numbers.

  • Best score: 14
  • Best player score: 14
  • Number of attempts: 7
Split line with dots - 2023 entries

This line is too long, split it.

  • Best score: 15
  • Best player score: 17
  • Number of attempts: 3
Simple, Practical, and Common - 30408 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: 22
  • Number of attempts: 9
Line under headers - 1495 entries

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

  • Best score: 25
  • Best player score: 27
  • Number of attempts: 6
chocolate
Twitter:

entered into 24 challenges

contributed 0 challenges