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 591074530b52f5000c000005

Nesting SASS

Move a block inside another block and indent it

Start file
.hero {
  background-color: pink;
}

header {
  border-bottom: 2px solid #26BBB3;
}
End file
.hero {
  background-color: pink;

  header {
    border-bottom: 2px solid #26BBB3;
  }
}

View Diff

3d2
< }
5,6c4,6
< header {
<   border-bottom: 2px solid #26BBB3;
---
>   header {
>     border-bottom: 2px solid #26BBB3;
>   }
7a8
> 

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 77 remaining solutions by signing in and submitting your own entry
#78 Heron Medeiros / @heronmedeiros - Score: 24 - 05/08/17 @ 15:15
jjddj<C-V>jjI  <Esc><Esc>Go<BS><BS>}<CR><Esc>:wq<CR>

0 comments


#79 Ryan Coopersmith / @RyanCoopersmit1 - Score: 24 - 06/04/17 @ 17:12
5GVGdkO<Esc>pVjj:norm i  <CR>ZZ

0 comments


Created by: @_bruab_

79 active golfers, 222 entries

Leaderboard (lowest score wins):
9
#31 - Karol Łukaszewicz / @Karolukaszewicz

07/31/2017 at 01:23PM

9
#32 - 杨洋 / @176795444

08/14/2017 at 12:15PM

9
#33 - Turkey Man / @lvturkeyman

11/10/2017 at 05:59PM

9
#34 - Benoit Mortgat / @Benoit_Mortgat

11/15/2017 at 07:54AM

9
#35 - Arijus / @argshook

02/05/2018 at 12:50PM

9
#36 - ParasamGateZero / @ParasamGateZero

02/21/2018 at 11:05PM

9
#37 - DHM / @DHM29978992

04/28/2018 at 09:18PM

9
#38 - qed / @qed13308565

07/24/2018 at 08:25PM

9
#39 - Dax / @zacoxi

12/06/2018 at 02:34AM

9
#40 - alekfed / @alek_fed

04/16/2019 at 01:33PM

10
#41 - Sean Rodman / @bassman7689

05/13/2017 at 12:48AM

11
#42 - Jenny Johnson / @Kippz07

05/09/2017 at 11:44AM

11
#43 - Victor Ramirez / @virako

05/31/2017 at 09:29PM

12
#44 - tom patterson / @pattertom

05/10/2017 at 02:17PM

12
#45 - Tushaar Kamat / @KamatTushaar

05/14/2017 at 01:11PM

13
#46 - Михаил Доронин / @Boris_B_London

05/08/2017 at 10:29PM

13
#47 - ЯRicardo / @TresErresCo

05/15/2017 at 01:16AM

14
#48 - herbage / @herbage2

05/08/2017 at 07:07PM

15
#49 - Brian Hall / @_bruab_

05/08/2017 at 01:39PM

15
#50 - Mike Marion / @mikejmarion

05/10/2017 at 01:13AM

15
#51 - Aman Singhal / @helixinverse

05/14/2017 at 02:05PM

15
#52 - Hugo / @szeyattai

08/28/2018 at 09:19AM

15
#53 - name / @name65894813

11/29/2018 at 02:08PM

15
#54 - Mihai / @mihaicristiant

01/09/2019 at 01:53PM

15
#55 - albalitz / @_albalitz

06/17/2019 at 12:08PM

15
#56 - majo senf / @majo_senf

06/24/2019 at 04:50PM

15
#57 - Ivo Blöchliger / @aigledesalpes

08/23/2019 at 08:25PM

17
#58 - James / @Dronak

05/08/2017 at 09:41PM

17
#59 - tPenguinLTG / @tpenguinltg

05/09/2017 at 12:03AM

17
#60 - Edouard Piette / @EdPiette

05/09/2017 at 08:24AM