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

V to the i - 4830 entries

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

  • Best score: 7
  • Best player score: 7
  • Position: #62 / 1903
  • Number of attempts: 3
Search and Replace 0 - 5031 entries

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

  • Best score: 12
  • Best player score: 12
  • Position: #214 / 1638
  • Number of attempts: 3
That hyphen - 2602 entries

"vim vi improved"

  • Best score: 9
  • Best player score: 13
  • Position: #512 / 704
  • Number of attempts: 2
Basic renumbering - 5707 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 24
  • Position: #1120 / 1274
  • Number of attempts: 1
Vice versa - 7974 entries

Little role switching.

  • Best score: 12
  • Best player score: 12
  • Position: #34 / 2146
  • Number of attempts: 4
Space out the alphabet - 1659 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 17
  • Position: #173 / 446
  • Number of attempts: 4
-a-b-c- - 3225 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Position: #584 / 1140
  • Number of attempts: 3
Lisp Condense - 460 entries

Reduce 4 cons selection operations down to one function call.

  • Best score: 13
  • Best player score: 13
  • Position: #27 / 158
  • Number of attempts: 4
A HAPPY NEW YEAR 2014 ! - 10713 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #455 / 3700
  • Number of attempts: 5
Saving the hashes(#) - 2067 entries

The following file is copied from vimcasts.org(Its only for learning purpose,hope the site owner doesn't mind it), its probably the easiest of challenges.Our goal is to delete every line which doesn't contain a hash signs. The remaining hash signs with numbers are then sorted to get the final output.

  • Best score: 20
  • Best player score: 27
  • Position: #230 / 480
  • Number of attempts: 2
Vertical Limit - 2596 entries

transform a succession of one word lines to a an array of strings

  • Best score: 21
  • Best player score: 27
  • Position: #526 / 767
  • Number of attempts: 1
replacing each line of a block selection - 3007 entries

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

  • Best score: 18
  • Best player score: 21
  • Position: #355 / 780
  • Number of attempts: 2
switch variable - 5094 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1078 / 1754
  • Number of attempts: 1
Turn this csv list into queries - 252 entries

Transform each line of this csv file into a MySQL-ready INSERT query.

  • Best score: 98
  • Best player score: 114
  • Position: #38 / 101
  • Number of attempts: 2
Simple text editing with Vim - 13274 entries

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

  • Best score: 13
  • Best player score: 13
  • Position: #149 / 3811
  • Number of attempts: 2
Maxime Dréau
Twitter:

entered into 15 challenges

contributed 0 challenges