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

Prime Numbers - 401 entries

List the first 100 prime numbers.

  • Best score: 34
  • Best player score: 47
  • Position: #59 / 109
  • Number of attempts: 1
V to the i - 4885 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #49 / 1915
  • Number of attempts: 2
Python Hello World! Reformatting - 1052 entries

A novice Python using prints Hello World! and a pro shows him different way. Using vim to get into pro style from novice, win the challenge.

  • Best score: 39
  • Best player score: 44
  • Position: #244 / 400
  • Number of attempts: 1
VimGolfNight - 604 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #182 / 357
  • Number of attempts: 1
NBCU Weekly Challenge - Test - 265 entries

Just testing.

  • Best score: 18
  • Best player score: 18
  • Position: #31 / 121
  • Number of attempts: 2
Lisp Condense - 485 entries

Reduce 4 cons selection operations down to one function call.

  • Best score: 13
  • Best player score: 13
  • Position: #19 / 163
  • Number of attempts: 4
120 Degrees - 517 entries

Rotate that triangle.

  • Best score: 14
  • Best player score: 18
  • Position: #67 / 147
  • Number of attempts: 4
Do you demand a shrubbery? - 1208 entries

Use :redir and crush the emacsgolfers.

  • Best score: 15
  • Best player score: 22
  • Position: #187 / 310
  • Number of attempts: 2
A HAPPY NEW YEAR 2014 ! - 10758 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #1867 / 3717
  • Number of attempts: 1
quotes inside quotes - 3203 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: 17
  • Position: #843 / 1094
  • Number of attempts: 1
Words in parens - 13054 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 17
  • Position: #2633 / 3991
  • Number of attempts: 2
The Quick Brown Fox Jumps Over The Lazy Vim - 456 entries

Someone has vandalized this text file and replaced the beginning character of one word in each line with a Big "X." Please remove the big X's, and fix each line to read "The Quick Brown Fox Jumps Over The Lazy Dog."

  • Best score: 8
  • Best player score: 10
  • Position: #76 / 199
  • Number of attempts: 2
replacing each line of a block selection - 3068 entries

replace each line's ../assets/js with /javascripts

  • Best score: 18
  • Best player score: 21
  • Position: #389 / 789
  • Number of attempts: 1
Append semicolon after expressions - 1087 entries

Some lines need the semicolon, some don't.

  • Best score: 11
  • Best player score: 11
  • Position: #74 / 426
  • Number of attempts: 3
switch variable - 5128 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 11
  • Position: #311 / 1764
  • Number of attempts: 1
Replacing some words - 445 entries

How fast could it be?

  • Best score: 17
  • Best player score: 17
  • Position: #23 / 152
  • Number of attempts: 5
The Cake is a Lie - 1418 entries

Correct the capitalization of each word

  • Best score: 8
  • Best player score: 9
  • Position: #184 / 543
  • Number of attempts: 1
Compile C - 454 entries

You might have to get clever to do this one.

  • Best score: 19
  • Best player score: 21
  • Position: #74 / 146
  • Number of attempts: 2
Simple text editing with Vim - 13645 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1371 / 3907
  • Number of attempts: 4
Haoxuan Yue
Twitter:

entered into 19 challenges

contributed 0 challenges