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

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

  • Best score: 7
  • Best player score: 8
  • Position: #808 / 1859
  • Number of attempts: 1
Extract argument from function - 2257 entries

The aim is to see if you can do some refactoring very fast.

  • Best score: 13
  • Best player score: 14
  • Position: #272 / 733
  • Number of attempts: 3
Search and Replace 0 - 4695 entries

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

  • Best score: 12
  • Best player score: 15
  • Position: #1050 / 1556
  • Number of attempts: 2
Just the middle - 11261 entries

Delete the instructions at the top and bottom.

  • Best score: 7
  • Best player score: 8
  • Position: #1517 / 4135
  • Number of attempts: 2
Create Leading Zeros - 205 entries

Create leading zeros only for id columns. Please use generic approach!

  • Best score: 23
  • Best player score: 49
  • Position: #63 / 77
  • Number of attempts: 2
Separating firstname & lastname - 113 entries

Seperate named with equal tabs.

  • Best score: 19
  • Best player score: 27
  • Position: #36 / 53
  • Number of attempts: 1
VimGolfNight - 507 entries

Based on "The name of the game".

  • Best score: 12
  • Best player score: 12
  • Position: #142 / 332
  • Number of attempts: 1
Square numbers - 90 entries

Boring math puzzle.

  • Best score: 16
  • Best player score: 30
  • Position: #22 / 36
  • Number of attempts: 2
I forgot quotes - 15769 entries

Oops.

  • Best score: 10
  • Best player score: 14
  • Position: #1417 / 4119
  • Number of attempts: 2
learn vim in short time - 220 entries

so happy to learn vim.because vim is awesome

  • Best score: 8
  • Best player score: 8
  • Position: #42 / 151
  • Number of attempts: 1
vim1001 - 269 entries

change number 1001 into a "vim1001 sequence". (My first challenge, hope it is not too bad... )

  • Best score: 17
  • Best player score: 26
  • Position: #78 / 105
  • Number of attempts: 2
Subtraction - 177 entries

Solve the equations.

  • Best score: 18
  • Best player score: 20
  • Position: #17 / 60
  • Number of attempts: 3
NBCU Weekly Challenge - Test - 233 entries

Just testing.

  • Best score: 18
  • Best player score: 20
  • Position: #80 / 112
  • Number of attempts: 1
Change name of a variable - 163 entries

Replace the name of the $variable with the fastest move possible. The challenge is having a command that allow you to easily change the variable name even if its indented.

  • Best score: 9
  • Best player score: 9
  • Position: #24 / 127
  • Number of attempts: 2
Lisp Condense - 432 entries

Reduce 4 cons selection operations down to one function call.

  • Best score: 13
  • Best player score: 16
  • Position: #103 / 152
  • Number of attempts: 5
Gray area - 707 entries

It's a golf metaphor or something.

  • Best score: 11
  • Best player score: 13
  • Position: #143 / 261
  • Number of attempts: 1
NBCU Weekly Challenge - #0 - 124 entries

One of our favorites lines here at NBCU! p.s. The first version of #0 was deleted due to me copy/pasting a HTML entity. Congrats to the one who figured that out, you are a true ninja warrior!

  • Best score: 30
  • Best player score: 34
  • Position: #37 / 55
  • Number of attempts: 1
Don't know what this is - 1955 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: 14
  • Position: #270 / 573
  • Number of attempts: 1
Two become one - 703 entries

We have two c arrays and want to make one two dimensional out of it. Can we do that?

  • Best score: 25
  • Best player score: 30
  • Position: #78 / 202
  • Number of attempts: 1
Where should I put the Newline? - 845 entries

Help me put the newline.

  • Best score: 7
  • Best player score: 8
  • Position: #230 / 422
  • Number of attempts: 1
Vim tetris - 351 entries

Vim can play tetris too!

  • Best score: 21
  • Best player score: 29
  • Position: #71 / 100
  • Number of attempts: 1
Mess in revision history - 1144 entries

Help Joe clean up what Steve has cobbled.

  • Best score: 17
  • Best player score: 27
  • Position: #152 / 243
  • Number of attempts: 2
Shuffle puzzle - 307 entries

Sort the lines in each indent group, and sort the groups. That's the pattern. Or just move lines around manually to get a better score.

  • Best score: 13
  • Best player score: 15
  • Position: #56 / 100
  • Number of attempts: 1
A HAPPY NEW YEAR 2014 ! - 10555 entries

A HAPPY NEW YEAR 2014 !

  • Best score: 11
  • Best player score: 12
  • Position: #1617 / 3642
  • Number of attempts: 1
attr_aligner - 3402 entries

Two attr keywords. Two separate indentations. Align the colons.

  • Best score: 19
  • Best player score: 31
  • Position: #403 / 685
  • Number of attempts: 1
Ninjas Leaderboard - 84 entries

The two lines in "Start file" has an obfuscated email address. Second line give an index (from 1 to 30) to the chars list of the first line, for example, the first char of email (n) is in position 25, second char (i) is in position 19 and s.o.

  • Best score: 25
  • Best player score: 43
  • Position: #35 / 38
  • Number of attempts: 2
quotes inside quotes - 3051 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: #738 / 1050
  • Number of attempts: 1
Words in parens - 12769 entries

We should all ace this, right?

  • Best score: 13
  • Best player score: 15
  • Position: #1258 / 3925
  • Number of attempts: 3
Groups magic - 142 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: 14
  • Position: #48 / 85
  • Number of attempts: 1
The Quick Brown Fox Jumps Over The Lazy Vim - 392 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: 11
  • Position: #128 / 182
  • Number of attempts: 1
Let's play some Ivmgolf - 1022 entries

Oops, I spelled that wrong.

  • Best score: 7
  • Best player score: 9
  • Position: #221 / 422
  • Number of attempts: 1
Vertical Limit - 2383 entries

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

  • Best score: 21
  • Best player score: 26
  • Position: #423 / 721
  • Number of attempts: 1
Make the circuit grid! - 79 entries

Copy this command for a circuit layout program to create 10 total smd commands. Increment the number in quotes to name each pad, and add 0.7 to each of the (X Y) coordinates at the end of each line.

  • Best score: 26
  • Best player score: 26
  • Position: #19 / 45
  • Number of attempts: 2
Exchanging Quotes - 800 entries

Sometimes you need to exchange a choice of quotes in some code.

  • Best score: 30
  • Best player score: 37
  • Position: #127 / 220
  • Number of attempts: 1
switch variable - 4963 entries

how fast can you switch two variable ?

  • Best score: 11
  • Best player score: 12
  • Position: #764 / 1712
  • Number of attempts: 2
Make it more readable - 1915 entries

Insert blank lines to make it more organized and readable

  • Best score: 13
  • Best player score: 15
  • Position: #262 / 628
  • Number of attempts: 1
Reverse Simple Deletion - 787 entries

You did the simple deletion, now reverse it.

  • Best score: 11
  • Best player score: 12
  • Position: #293 / 437
  • Number of attempts: 1
The Cake is a Lie - 1234 entries

Correct the capitalization of each word

  • Best score: 3
  • Best player score: 11
  • Position: #417 / 497
  • Number of attempts: 1
Simple text editing with Vim - 11705 entries

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

  • Best score: 13
  • Best player score: 14
  • Position: #1117 / 3430
  • Number of attempts: 5
Bambu
Twitter:

entered into 39 challenges

contributed 0 challenges