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 84 remaining solutions by signing in and submitting your own entry
#85 z_r_a / @z_r_a - Score: 26 - 10/22/20 @ 08:37
GVkk:norm I  <CR>VkkdkPO<BS><BS><Esc>ZZ

0 comments


Created by: @_bruab_

85 active golfers, 241 entries

Leaderboard (lowest score wins):
15
#61 - Miłosz Łakomy / @foobar01123

01/27/2020 at 11:42AM

17
#62 - James / @Dronak

05/08/2017 at 09:41PM

17
#63 - tPenguinLTG / @tpenguinltg

05/09/2017 at 12:03AM

17
#64 - Edouard Piette / @EdPiette

05/09/2017 at 08:24AM

17
#65 - Chris Fleming / @chrisfl

05/10/2017 at 10:50PM

17
#66 - Tommaso Leonardi / @tom_leon

05/11/2017 at 01:41PM

17
#67 - Melvin Cheung / @MelvinCheung

05/23/2017 at 01:52AM

17
#68 - Benoit Benoit / @Benoit_Tgt

06/08/2017 at 04:54PM

17
#69 - akanb / @GAkt6L6SlKhy8zA

06/29/2017 at 12:01AM

17
#70 - Gurukandhamoorthi / @Gurukandhamoor1

07/10/2017 at 10:35AM

17
#71 - Clay Thomas / @CHThomas95

08/09/2017 at 08:07PM

17
#72 - Geoff / @RealGeoffErwin

10/09/2017 at 07:22PM

18
#73 - sebastian pech / @specht08

06/08/2017 at 04:14PM

19
#74 - Hector Davensburg / @hdavensburg

05/13/2017 at 07:00PM

19
#75 - ʀǟɦʊʟ ɮɦօʟǟ / @theRahulBhola

05/21/2017 at 10:10AM

20
#76 - Eugene Oskin / @EugeneOskin

05/14/2017 at 03:33PM

20
#77 - James Houghton / @jamesthoughton

07/20/2017 at 04:04PM

20
#78 - Austin Ware / @AustinWare17

03/13/2018 at 01:43AM

21
#79 - Jurica / @Jurica34581259

11/19/2018 at 09:03PM

21
#80 - wrglprmft2 / @wrglprmft2

10/18/2019 at 07:48PM

22
#81 - Luke DeWitt / @lanewalkerx

05/14/2017 at 05:12PM

23
#82 - python-tweepy / @python_tweepy

05/14/2017 at 09:56PM

24
#83 - Heron Medeiros / @heronmedeiros

05/08/2017 at 03:15PM

24
#84 - Ryan Coopersmith / @RyanCoopersmit1

06/04/2017 at 05:12PM

26
#85 - z_r_a / @z_r_a

10/22/2020 at 08:37AM