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

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

  • Best score: 7
  • Best player score: 9
  • Position: #1594 / 1907
  • Number of attempts: 1
Just the middle - 11572 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1762 / 4240
  • Number of attempts: 1
Basic renumbering - 5731 entries

Renumbering Basic.

  • Best score: 11
  • Best player score: 23
  • Position: #1004 / 1277
  • Number of attempts: 1
Separating firstname & lastname - 181 entries

Seperate named with equal tabs.

  • Best score: 19
  • Best player score: 37
  • Position: #58 / 61
  • Number of attempts: 1
Collect List - 4332 entries

Convert to comma separated list.

  • Best score: 12
  • Best player score: 16
  • Position: #802 / 1196
  • Number of attempts: 1
Logging with key - 342 entries

Sometimes it is better to log with meaningful key

  • Best score: 21
  • Best player score: 57
  • Position: #88 / 89
  • Number of attempts: 2
Space out the alphabet - 1686 entries

Put 3 spaces between adjacent letters.

  • Best score: 15
  • Best player score: 21
  • Position: #276 / 451
  • Number of attempts: 1
Mute the second method of this script - 460 entries

prepend a # infront of every line of the second method

  • Best score: 8
  • Best player score: 10
  • Position: #183 / 242
  • Number of attempts: 1
increment by column in XML - 165 entries

modify an arbitrary "column" in an xml table by incrementing a an arbitrary placeholder string

  • Best score: 19
  • Best player score: 32
  • Position: #53 / 56
  • Number of attempts: 1
Happy TvvO - 436 entries

Don’t forget the past, learn from it. Happy New Year.

  • Best score: 12
  • Best player score: 12
  • Position: #84 / 208
  • Number of attempts: 3
I forgot quotes - 16176 entries

Oops.

  • Best score: 10
  • Best player score: 16
  • Position: #2471 / 4216
  • Number of attempts: 2
Shift down - 223 entries

Number words are back.

  • Best score: 19
  • Best player score: 59
  • Position: #69 / 70
  • Number of attempts: 1
-a-b-c- - 3229 entries

Put hyphens everywhere.

  • Best score: 13
  • Best player score: 20
  • Position: #1083 / 1142
  • Number of attempts: 1
Lisp Condense - 460 entries

Reduce 4 cons selection operations down to one function call.

  • Best score: 13
  • Best player score: 19
  • Position: #151 / 158
  • Number of attempts: 1
Refactor static member invocation - 211 entries

Someone used a static method. Refactor the method into a static import while fixing the assertion.

  • Best score: 28
  • Best player score: 43
  • Position: #58 / 65
  • Number of attempts: 2
Don't know what this is - 2036 entries

Replace contents of brackets with matching number of spaces. Don't ask what the format's supposed to be.

  • Best score: 11
  • Best player score: 18
  • Position: #563 / 589
  • Number of attempts: 1
Where should I put the Newline? - 889 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Position: #349 / 442
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10743 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #2006 / 3710
  • Number of attempts: 4
quotes inside quotes - 3191 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: #866 / 1088
  • Number of attempts: 1
Words in parens - 13024 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 17
  • Position: #2659 / 3983
  • Number of attempts: 2
Groups magic - 163 entries

Regexp or macros for string converting: (a) -> ___ (abc) -> ____ (abcd) -> ______ All in the '(' replace to _ multiply by char count + ()

  • Best score: 13
  • Best player score: 17
  • Position: #91 / 96
  • Number of attempts: 1
SFD-ROC: vimvimvim - 1624 entries

Oh no, this line is longer than 80 chars... put each 'vim' on a new line.

  • Best score: 8
  • Best player score: 16
  • Position: #432 / 453
  • Number of attempts: 2
Switch function arguments - 2195 entries

How to switch two arguments of a function.

  • Best score: 11
  • Best player score: 16
  • Position: #619 / 678
  • Number of attempts: 1
switch variable - 5110 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 17
  • Position: #1627 / 1758
  • Number of attempts: 1
The meaning - 577 entries

Numbers are fun!

  • Best score: 5
  • Best player score: 6
  • Position: #345 / 364
  • Number of attempts: 1
Make it more readable - 2028 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 24
  • Position: #627 / 656
  • Number of attempts: 1
remove dupes from array - 1362 entries

given a random string that contains a ruby-esque array, make sure that there are no duplicate elements

  • Best score: 17
  • Best player score: 22
  • Position: #178 / 339
  • Number of attempts: 5
Rotating Philosophers Problem - 411 entries

Can you help the philosophers find a good place to sit before they get five forks and spaghetti?

  • Best score: 29
  • Best player score: 34
  • Position: #146 / 167
  • Number of attempts: 1
Shebangs for all - 2090 entries

We've all seen or used a shebang once or twice. Ditch the specific paths and leave just a dynamic Ruby and Python bath behind.

  • Best score: 11
  • Best player score: 18
  • Position: #385 / 529
  • Number of attempts: 2
Fix the Haiku - 320 entries

Change this slightly scrambled haiku to its unscrambled form and fix the capitalisation and punctuation along the way.

  • Best score: 28
  • Best player score: 49
  • Position: #99 / 115
  • Number of attempts: 1
Change the content of a string - 1761 entries

This docstring is a complete lie. Fix it.

  • Best score: 22
  • Best player score: 26
  • Position: #454 / 645
  • Number of attempts: 1
Simple text editing with Vim - 13468 entries

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

  • Best score: 13
  • Best player score: 24
  • Position: #3216 / 3865
  • Number of attempts: 2
ɐʇnɥsɐpoʇ
Twitter:

MTBやロードバイクに乗ったり、vimとかzshとかいじくりまわしたりしてます。 #mtb #bicycle #vim #vimeditor #zsh #linux #bsd #mac #clojure #minecraft #ruby #nexus5 #wordpress

entered into 32 challenges

contributed 0 challenges