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 - 25767 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: 32
  • Number of attempts: 1
Increment each number - 536 entries

Increment each number individually by one

  • Best score: 15
  • Best player score: 23
  • Number of attempts: 1
One to Ten - 1105 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: 23
  • Number of attempts: 2
Words in parens - 11201 entries

We should all ace this, right?

  • Best score: 14
  • Best player score: 16
  • Number of attempts: 1
Simple text editing with Vim - 10554 entries

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

  • Best score: 13
  • Best player score: 17
  • Number of attempts: 2
V to the i - 3985 entries

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

  • Best score: 7
  • Best player score: 12
  • Number of attempts: 1
-a-b-c- - 2637 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 19
  • Number of attempts: 1
Every other line - 2141 entries

AaAaAaA

  • Best score: 12
  • Best player score: 22
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 9621 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 18
  • Number of attempts: 1
change parenthesis - 155 entries

change the pair of braces into a pair of parentheses

  • Best score: 9
  • Best player score: 21
  • Number of attempts: 1
That hyphen - 2205 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 20
  • Number of attempts: 1
Add semicolons - 2844 entries

Simply add a semicolon at the end of each line

  • Best score: 10
  • Best player score: 13
  • Number of attempts: 1
Change part of a function name in multiple occurrences - 439 entries

Change the middle part of the function name in multiple places, preferably using the next and dot commands.

  • Best score: 14
  • Best player score: 22
  • Number of attempts: 1
Florent Uguet
Twitter:

entered into 13 challenges

contributed 0 challenges