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 50127eba201f450002000024

Make the circuit grid!

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.

Start file
smd .5 .5 -100 'A1' (0 -1.2)
End file
smd .5 .5 -100 'A1' (0 -1.2)
smd
.5 .5 -100 'A2' (0 -0.5)
smd
.5 .5 -100 'A3' (0 0.2)
smd
.5 .5 -100 'A4' (0 0.9)
smd
.5 .5 -100 'A5' (0 1.6)
smd
.5 .5 -100 'A6' (0 2.3)
smd
.5 .5 -100 'A7' (0 3.0)
smd
.5 .5 -100 'A8' (0 3.7)
smd
.5 .5 -100 'A9' (0 4.4)
smd
.5 .5 -100 'A10' (0 5.1)

View Diff

1a2,10
> smd .5 .5 -100 'A2' (0 -0.5)
> smd .5 .5 -100 'A3' (0 0.2)
> smd .5 .5 -100 'A4' (0 0.9)
> smd .5 .5 -100 'A5' (0 1.6)
> smd .5 .5 -100 'A6' (0 2.3)
> smd .5 .5 -100 'A7' (0 3.0)
> smd .5 .5 -100 'A8' (0 3.7)
> smd .5 .5 -100 'A9' (0 4.4)
> smd .5 .5 -100 'A10' (0 5.1)

Solutions

The best way to learn is to practice. Below, you will find some of the solutions other golfers have entered. To unlock higher ranked solutions, submit your own entry which does as well or better than the solutions you can currently see - climb the ladder!

Check out these helpful resources to improve your Vim skills... Game on.

Unlock 49 remaining solutions by signing in and submitting your own entry
#50 Ravi S Sinha / @ambidextrousTx - Score: 89 - 09/02/12 @ 19:24
yy9p:let a=2|e<BS>let b=-1.2<CR>qafAlcw<C-R>=a<CR><Esc>2Wct)<C-R>=0.7+b<CR><Esc>:et <BS><BS><BS>let a+=1|let b+=0.7<CR>j0q8@a:wq<CR>

0 comments


Created by: @engineercyb

50 active golfers, 101 entries

Leaderboard (lowest score wins):
26
#1 - Kerson Hsiao / @KersonHsiao

07/27/2012 at 12:26PM

26
#2 - h_east (トロッコ6個) / @h_east

07/27/2012 at 01:38PM

26
#3 - Federico Galassi / @federicogalassi

07/27/2012 at 01:50PM

26
#4 - Tim Chase / @gumnos

07/27/2012 at 05:53PM

26
#5 - Urtica dioica / @udioica

07/27/2012 at 05:57PM

26
#6 - Justin Love / @wondible

07/28/2012 at 03:48AM

26
#7 - Peter Anselmo / @peter_anselmo

07/28/2012 at 03:09PM

26
#8 - Alexander Zolotov / @alex_zolotov

08/12/2012 at 04:13PM

26
#9 - Catalin Ciurea / @catalinciurea

08/12/2012 at 09:20PM

26
#10 - Sean Griffin / @sgrif

08/12/2012 at 10:42PM

26
#11 - chikatoike / @chikatoike

08/16/2012 at 03:52AM

26
#12 - lwjef / @lwjef

08/16/2012 at 11:50PM

26
#13 - I / @ForgetIt17

08/17/2012 at 11:59PM

26
#14 - Aaron Hall / @aarontothemax

08/24/2012 at 04:06AM

26
#15 - tmr / @tmr314

09/07/2012 at 08:49PM

26
#16 - Conner McDaniel / @connermcd

09/18/2012 at 04:29AM

26
#17 - Chasetopher / @chasetopherlee

10/31/2012 at 04:28AM

26
#18 - James / @Dronak

09/05/2013 at 09:18PM

26
#19 - Bambu / @bambumandinga

01/18/2014 at 11:53PM

26
#20 - Xelrifos / @Xelrifos

02/26/2014 at 06:55PM

26
#21 - Joonas Pihlajamaa / @jokkebk

03/21/2014 at 12:58PM

26
#22 - Brian Olpin / @bolpin

05/04/2014 at 03:15PM

26
#23 - LC / @leeren

08/10/2014 at 08:17PM

26
#24 - Caek / @Caek_

08/18/2014 at 01:30AM

26
#25 - John Braxler / @braxler

08/26/2014 at 05:27PM

26
#26 - Jon Krause / @jkrause314

12/20/2020 at 09:41PM

26
#27 - Salvador Tojo Quintela / @SalvadorTojo

10/12/2021 at 02:23PM

26
#28 - mevmev / @mevmev8

10/27/2021 at 01:50PM

26
#29 - Divvy C. / @divvy_c

08/11/2023 at 07:22PM

26
#30 - Peppa Pig / @PeppaPigSg

05/29/2024 at 03:04AM