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):
27
#31 - cromac / @cromac

07/29/2012 at 06:13AM

28
#32 - Édouard M'tou / @DouardM

10/09/2012 at 06:52AM

28
#33 - Marcin Szamotulski / @me_coot

10/29/2012 at 03:39PM

28
#34 - Janzen / @__Coos

09/24/2022 at 01:34PM

29
#35 - Peter Schlette / @pschlette

08/01/2012 at 04:04AM

29
#36 - J Paul Daigle / @philosodad

08/17/2012 at 01:21PM

29
#37 - Vasil Sakarov / @vsakarov

09/20/2012 at 08:52AM

30
#38 - Joseph Barratt / @josephmbarratt

09/10/2012 at 10:53PM

31
#39 - Chris Brown / @engineercyb

07/27/2012 at 11:44AM

32
#40 - RockerZZY / @rocker_zzy

06/05/2020 at 05:04AM

32
#41 - nickGPT / @nickandbro

08/28/2024 at 08:03PM

33
#42 - Son of Bongo / @bpcode

10/05/2012 at 02:42PM

35
#43 - Glen / @Glen_S

07/29/2012 at 01:44AM

36
#44 - Martin Petrov / @mgpetrov

08/25/2012 at 05:52PM

48
#45 - 小世界 / @walilav

12/22/2023 at 04:17AM

50
#46 - Raúl Jara / @rauljara

07/28/2012 at 03:25AM

53
#47 - Piotr Śniegowski / @PiotrSniegowski

06/06/2013 at 01:05PM

71
#48 - shahanavaz m / @shahanavazm

04/07/2024 at 08:51PM

88
#49 - Justin Knag / @justinknag

03/06/2015 at 11:00AM

89
#50 - Ravi S Sinha / @ambidextrousTx

09/02/2012 at 07:24PM