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

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

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

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

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

"vim vi improved"

  • Best score: 9
  • Best player score: 13
  • Position: #500 / 683
  • Number of attempts: 2
Basic renumbering - 5436 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 24
  • Position: #1077 / 1228
  • Number of attempts: 1
Vice versa - 7537 entries

Little role switching.

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

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 17
  • Position: #168 / 434
  • Number of attempts: 4
-a-b-c- - 3122 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 15
  • Position: #569 / 1113
  • Number of attempts: 3
Lisp Condense - 432 entries

Reduce 4 cons selection operations down to one function call.

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

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 11
  • Position: #455 / 3638
  • Number of attempts: 5
Saving the hashes(#) - 1966 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: #224 / 467
  • Number of attempts: 2
Vertical Limit - 2377 entries

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

  • Best score: 21
  • Best player score: 27
  • Position: #492 / 719
  • Number of attempts: 1
replacing each line of a block selection - 2816 entries

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

  • Best score: 18
  • Best player score: 21
  • Position: #338 / 736
  • Number of attempts: 2
switch variable - 4945 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 13
  • Position: #1052 / 1708
  • Number of attempts: 1
Turn this csv list into queries - 201 entries

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

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

entered into 15 challenges

contributed 0 challenges