Real Vim ninjas count every keystroke - do you?

Pick a challenge, fire up Vim, and show us what you got.

Leaderboard, Changelog, Rules & FAQ, updates: @vimgolf, RSS.

Your VimGolf key: please sign in

$ gem install vimgolf
$ vimgolf setup
$ vimgolf put 4d5110077667ad04c4000018

CSS to SASS

Convert from css to sass.

Start file
.navigation {
  border-color: #3bbfce;
  color: #2b9eab;
}
.navigation .logo {
  float: left;
}

.border {
  padding: 8px;
  margin: 8px;
  border-color: #3bbfce;
  font-family: serif;
  font-weight: bold;
  font-size: 1.2em;
}
End file
$blue: #3bbfce
$margin: 16px

.content-navigation
  border-color: $blue
  color: darken($blue, 9%)
  .logo
    float: left

.border
  padding: $margin / 2
  margin: $margin / 2
  border-color: $blue
  font:
    family: serif
    weight: bold
    size: 1.2em

View Diff

1,7c1,2
< .navigation {
<   border-color: #3bbfce;
<   color: #2b9eab;
< }
< .navigation .logo {
<   float: left;
< }
---
> $blue: #3bbfce
> $margin: 16px
9,16c4,17
< .border {
<   padding: 8px;
<   margin: 8px;
<   border-color: #3bbfce;
<   font-family: serif;
<   font-weight: bold;
<   font-size: 1.2em;
< }
---
> .content-navigation
>   border-color: $blue
>   color: darken($blue, 9%)
>   .logo
>     float: left
> 
> .border
>   padding: $margin / 2
>   margin: $margin / 2
>   border-color: $blue
>   font:
>     family: serif
>     weight: bold
>     size: 1.2em

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 35 remaining solutions by signing in and submitting your own entry
#36 Aleksey Gureiev / @spyromus - Score: 188 - 12/07/11 @ 12:46
:g/;/d<CR>uggVG:s/;//g<CR><C-V>kkwc  <C-O>Ofn<BS>ont:<Esc>kf#"ccW$blue<Esc>B"ayWkBcw$margin / 2<Esc>kB.ggO<C-R>a: <C-R>c<Esc><Esc>j0acontent-<Esc>f DjBcw<Esc>lce<C-R>a<Esc>jBcWdarken(<C-R>a, 9%)<Esc>jd2wu2<Esc><BS><Right><Down>d2Wf DBi  <Esc>j.jddggo$margin: 16px<CR><Esc>:10<CR>f DGdd:wq<CR>

0 comments

#37 Forrest L Norvell / @othiym23 - Score: 201 - 01/28/12 @ 21:07
VG:s/;//<CR>ggO$blue: #3bbfce<CR>$margin: 16px<CR><Esc>jelDbicontent-<Esc>VG:s/#3bbfce/$blue/<CR>:7<CR>dd2dwi  <Esc>ji  <Esc>kA<BS><BS><Esc>2jddjA<BS><BS><Esc>jVj:s/8px/m<BS>$margin / 2/<BS><BS><BS><BS>\/ 2/<CR>jjkofont:<Esc>jVjj:s/font-/  /<CR>jdd:6<CR>eeeCdarken($blue, 9%)<Esc>:wq<CR>

0 comments

#38 Dan Masquelier / @danmasq - Score: 205 - 07/01/11 @ 08:38
acontent-<Esc>O$blue: #3<C-N><Esc>qv/#3<CR>2cw$bl<C-N><Esc>q@v:%s/;//g<CR>:%s/ {//g<CR>:%s/}//g<CR>dddtskdf-kf-xi<CR><Esc>qvi  <Esc>jq2@vx^i  <Esc>llx:<Esc><Esc>3kA;<BS>:<Esc>:%s/8px/$ma<C-N>rgin/g<BS><BS> \/ 2/g<CR>3kdd3kdt i <Esc>kddji  <Esc>2kf#2cwdarken($bl<C-N>, 9%)<Esc>Ho$ma<C-N>: 16pxo<BS><Esc>0o<Esc>ZZ

0 comments

#39 Joost / @vlabakje - Score: 206 - 02/12/11 @ 10:39
i$blue: #3bbfce<CR>$margin: 16px<CR><CR>.content-<Esc>lx$xxjhhC$blue<Esc>j7hCdarken($blue, 9%)<CR>.logo<CR>  float: left<CR><Esc>3ekk3d<CR>ddj$xxjwwC$margin / 2<Esc>3w.4wllcGborder-color: $blue<CR>font:<CR>  family: serif<CR>weight: bold<CR>size: 1.2em<Esc>ZZ

0 comments

#40 Neal Lindsay / @neall - Score: 222 - 03/16/11 @ 08:19
jyyGggP<Home>ct#$blue: <Esc>yyplciwmargin<Esc>f#DA16px<Esc>k<End>Djo<Esc>je<Esc>u<C-R>jj<Home>acontent-<Esc><End>hDjhhDabl<BS><BS>$blue<Esc>jbhDAdarnek<BS><BS><BS>ken($blue, 9%)<Esc>jdddf <Esc>>>ui  <Esc><End><Left>Dj<End>D<Home>i  <Esc>jddj<End>hDjeeebDa$margin / 2<Esc>j.bbbbdf;jf#c$$blue3<BS><Esc>Gddcf-  <Esc>jkb.kb.kA<CR>font:<Esc>j<End>DjDjD:wq<CR>

0 comments

#41 dm4 / @dm4 - Score: 226 - 02/13/11 @ 05:08
acontent-<C-E><BS><Esc>A<BS><BS><Esc>jhhi#<BS>$blue<Esc>lvllllllxkO<C-R>0<Esc>pjjjA<BS><BS><BS><BS><BS><BS><BS><BS>darken($blue, 9%)<Esc>kxkk0i$blue: <Esc>o#ma<BS><BS><BS>$margin: 16px<CR><Esc>jjjo.logo<CR>  float: left<CR><Esc>jVjjjjdA<BS><BS><Esc>jllll<C-V>jlllls $margin / 2<Esc>j4F xjA<BS><BS><BS><BS><BS><BS><BS><BS>$blue<Esc>j^<C-V>lllljjs  <Esc>kofont:<Esc>jA<BS><Down><BS><Down><BS><Down><BS><BS><Esc>:x<CR>

0 comments

#42 Michael Søndergaard / @Sheeo - Score: 237 - 02/13/11 @ 14:55
O$blue: #3bbfce<CR>$margin: 16px<CR><Esc>jacontent-<Esc>$hd$hjbc$blue<Esc>bi$<Esc>jbhc$darken($blue, 9&<BS>%)<Esc>jxjdwdwi<Tab><BS>  <Esc>kddjk$xa<BS><Esc>jjddk$hhhhhhhhhhhi<Tab><BS>  <Esc>$xjjhd$jeeebd$a$margin /2<BS> <Esc>a2<Esc>jbd$a$margin / 2<Esc>jbbc$$blue<Esc>jbbbi<BS>:<CR>  <Esc>$xjbbbbbdwxi  <Esc>$xj0cts    <Esc>$xjdd:wq<CR>

0 comments

#43 Niko Riitala / @nikoriitala - Score: 275 - 02/08/11 @ 02:29
VGd:set paste<CR>i$blue: #3bbfce<CR>$margin: 16px<CR><CR>.content-navigation<CR>  border-color: $blue<CR>  color: darken($blue, 9%)<CR>  .logo<CR>    float: left<CR><CR>.border<CR>  padding: $margin / 2<CR>  margin: $margin / 2<CR>  border-color: $blue<CR>  font:<CR>    family: serif<CR>    weight: bold<CR>    size: 1.2em<Esc>ZZ

@0x89: +1 for making fun of Tharnakus's solution

1 comment

#44 Tharnakus / @Tharnakus - Score: 301 - 02/08/11 @ 02:39
:%s/;<CR>df-<Up>.<Up>.<Up>o<BS>.font:<Up><Up><Down><Right><Right><Right><Right><Right><Right><Right><Right><Right><Esc><Right>xcw$blue<Esc><Up><Left><Left>cw$margin / 2<Esc><Up><Left><Left>.<Up><Left>D<Down><Down><Down><Down><Down><Down><Down><Down><Down>dd<Up><Up><Up><Up><Up><Up><Up><Up><Up><Down><Up>dd<Up><Up>xcwx<BS><Del><Right><Right><Right><Right><Right><Esc><Right>D<Left><Left><Left><Left>i <Down><Up><Left><Left><Right> <Down>  <Down><Down><Down><Left><Left><Left><Left><Down><Down><Down><Right> <Down>  <Down><Left><Left>  <Down><Left><Left>  <Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Esc>dd<Up><Up><Up><Left><Left><Right>icontent-<Right><Right><Right><Right><Right><Right><Right><Right><Right><Right>D<Left><Esc><Right>D<Down><Left><Left>xcw$blue<Down><BS><BS><BS><BS><BS><BS><BS>darken($blue, 9%)<Down><Left><Down><Down><Down><Down><Down><Down><Left><Left><Down><Left><Left>x<BS><Del><Down><Right><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Up><Left><Left><Left><CR><Up>$blue: #3bbfce<CR>$margin: 16px<CR><Esc>:wq<CR>

0 comments

Created by: @tienlex

44 active golfers, 109 entries

Leaderboard (lowest score wins):
Q6hrg93p4r3hn56thmd0_normal
104
#1 - Urtica dioica / @udioica

05/14/2013 at 03:24AM

Jlove201003sq_normal
107
#2 - Justin Love / @wondible

09/08/2011 at 08:38AM

Gintoki_normal
107
#3 - You-Siang Lin / @yslinnctu

11/29/2011 at 08:48PM

T_e_normal
112
#4 - Tim Chase / @gumnos

02/09/2011 at 06:38AM

P1000007_normal
113
#5 - h_east (DDD ready) / @h_east

02/09/2011 at 04:10AM

Default_profile_6_normal
118
#6 - William Dunand / @wdunand

02/28/2012 at 01:28AM

F0e1cff80649cbbdabdc2a83198a4774_normal
123
#7 - Martin Sander / @0x89

02/19/2011 at 05:04PM

Default_profile_0_normal
127
#8 - timhoa / @timhoa

02/10/2011 at 12:33PM

Image_normal
130
#9 - Pete Johns / @johnsyweb

02/08/2011 at 04:40AM

Default_profile_2_normal
135
#10 - Renat Aksitov / @Korvin79

02/06/2012 at 01:15PM

Av_normal
136
#11 - Vasil Sakarov / @vsakarov

01/12/2012 at 01:54PM

Avatar-small_normal
139
#12 - Hu Junfeng / @hujunfeng

08/02/2011 at 04:11AM

2c68d2a7e6b253e55d7ded4abb4710d1_normal
140
#13 - Yann Moisan / @YannMoisan

01/28/2013 at 12:24PM

Obrazek_3_normal
141
#14 - icdark / @icdark

06/11/2011 at 07:17AM

Dscn1412_normal
142
#15 - Chris Eppstein / @chriseppstein

02/22/2011 at 02:51PM

Photo1_normal
142
#16 - Mislav Marohnić / @mislav

11/28/2011 at 06:35PM

Bc879469f279ee24b7fbdfad7c2216d9_normal
143
#17 - 無ん垢の叫び / @john_ababa

02/27/2012 at 03:20AM

Logo_normal
144
#18 - Ash Searle / @hexmen

03/13/2011 at 08:39AM

Default_profile_5_normal
145
#19 - Karel Vervaeke / @karel1980

02/22/2011 at 08:21AM

Uwe_horns_by_joao_normal
145
#20 - Dave / @zzdave13

07/17/2011 at 02:25PM

5c4b31bbbf373900371b85ff6a01b678_normal
150
#21 - Kevin Hamer / @khamer

02/10/2011 at 12:31PM

Avatar_normal
153
#22 - Xavier Nayrac / @lkdjiin

01/08/2012 at 05:41AM

E269db141731bb4b5dd8d6c1288d39c7_normal
153
#23 - Jonathan Lozinski / @jlozinski

04/25/2012 at 12:14PM

Dnb_logo_red_normal
155
#24 - Dan Herbert / @pocketninja_au

02/28/2012 at 09:41PM

Avatar-square_normal
159
#25 - Zak Johnson / @zakj

04/20/2011 at 07:51PM

Pt00904_normal
160
#26 - Roy Marco Aruta / @royaruta

02/19/2011 at 07:32PM

L3mo9g2d3jpj7ysqb4iz_normal
160
#27 - Pasha Klets / @p01nt

03/05/2011 at 03:13AM

Avatar_normal
160
#28 - Daniel Harrington / @rubiii

04/15/2011 at 03:57AM

Default_profile_0_normal
162
#29 - bogdanp / @bogdanp

03/25/2011 at 05:02AM

Avatar_normal
166
#30 - Stephen Tudor / @tudorstudio

08/20/2011 at 04:20PM

Hoodie_normal
171
#31 - Simon Scarfe / @simonscarfe

09/06/2011 at 04:20AM

Avatar_normal
176
#32 - Øystein Walle / @oysteinwalle

07/06/2011 at 05:27AM

Img_0417_crop_normal
178
#33 - Philippe Mongeau / @phmongeau

11/29/2011 at 12:57PM

Profile2_normal
179
#34 - Nicola Paolucci / @durdn

02/22/2011 at 02:10PM

Image1326661166_normal
182
#35 - Christopher Brew / @Seph1rothVII

01/13/2012 at 03:28PM

200-g_normal
188
#36 - Aleksey Gureiev / @spyromus

12/07/2011 at 12:46PM

Pony2_normal
201
#37 - Forrest L Norvell / @othiym23

01/28/2012 at 09:07PM

46a0320167ab007f0a98222e65c0f3b7_normal
205
#38 - Dan Masquelier / @danmasq

07/01/2011 at 08:38AM

Foto_joost_normal
206
#39 - Joost / @vlabakje

02/12/2011 at 10:39AM

Neal_normal
222
#40 - Neal Lindsay / @neall

03/16/2011 at 08:19AM

Dsc00050_normal
226
#41 - dm4 / @dm4

02/13/2011 at 05:08AM

633597723820162611_normal
237
#42 - Michael Søndergaard / @Sheeo

02/13/2011 at 02:55PM

Nriitala_normal
275
#43 - Niko Riitala / @nikoriitala

02/08/2011 at 02:29AM

30834_face_normal
301
#44 - Tharnakus / @Tharnakus

02/08/2011 at 02:39AM