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 - 4796 entries

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

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

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

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

"vim vi improved"

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

Renumbering Basic.

  • Best score: 11
  • Best player score: 24
  • Position: #1108 / 1261
  • Number of attempts: 1
Vice versa - 7891 entries

Little role switching.

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

Put 3 spaces between adjacent letters.

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

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Position: #583 / 1137
  • 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 ! - 10654 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #455 / 3678
  • Number of attempts: 5
Saving the hashes(#) - 2048 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: #228 / 478
  • Number of attempts: 2
Vertical Limit - 2522 entries

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

  • Best score: 21
  • Best player score: 27
  • Position: #515 / 751
  • Number of attempts: 1
replacing each line of a block selection - 2979 entries

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

  • Best score: 18
  • Best player score: 21
  • Position: #353 / 773
  • Number of attempts: 2
switch variable - 5061 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1071 / 1743
  • Number of attempts: 1
Turn this csv list into queries - 237 entries

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

  • Best score: 98
  • Best player score: 114
  • Position: #37 / 99
  • Number of attempts: 2
Simple text editing with Vim - 12627 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 / 3653
  • Number of attempts: 2
Maxime Dréau
Twitter:

entered into 15 challenges

contributed 0 challenges