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 72 remaining solutions by signing in and submitting your own entry
#73 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


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

0 comments


Created by: @_bruab_

74 active golfers, 204 entries

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

05/08/2017 at 04:46PM

9
#2 - John Braxler / @braxler

05/08/2017 at 05:41PM

9
#3 - 梧桐王子 / @WutongYujie

05/09/2017 at 04:45AM

9
#4 - Saki Gw / @Sakigw

05/09/2017 at 08:21AM

9
#5 - Smylers / @Smylers2

05/09/2017 at 08:35AM

9
#6 - Anoop Kumar / @anooplive

05/09/2017 at 07:22PM

9
#7 - Chris Robertson / @chrisxrobertson

05/10/2017 at 07:58AM

9
#8 - Anton Matveev / @aush_tx

05/10/2017 at 02:06PM

9
#9 - Matthew Mongeau / @halogenandtoast

05/11/2017 at 08:25AM

9
#10 - Stanislav / @prstad

05/11/2017 at 09:01AM

9
#11 - Matt Cook / @mattcook08

05/12/2017 at 06:31AM

9
#12 - Vladislav Supalov / @vsupalov

05/12/2017 at 08:00AM

9
#13 - Rami Hovi / @hacker_lawyer

05/13/2017 at 12:08AM

9
#14 - Arnie Palmies / @ArnieViPalmies

05/13/2017 at 05:56AM

9
#15 - Richard Ivan / @Richard_Ivan

05/13/2017 at 03:03PM

9
#16 - Valacar / @valacar

05/15/2017 at 11:23PM

9
#17 - Russell Ball / @rtball2

05/16/2017 at 12:53AM

9
#18 - Emmanuel Denloye-Ito / @EmmanuelDenloye

05/18/2017 at 09:33PM

9
#19 - Kyouma / @kyoumaJohn

05/19/2017 at 01:17PM

9
#20 - Petro Тrouq / @zulolosi

05/21/2017 at 10:43PM

9
#21 - Rodrigo Dorantes G. / @ruydg

05/22/2017 at 06:45AM

9
#22 - Parker Vaughn / @parker789

05/23/2017 at 05:57PM

9
#23 - BlackCap / @BlackCapCoder

05/24/2017 at 05:51PM

9
#24 - Tomas Sikula / @tomsmicroblog

05/26/2017 at 06:11PM

9
#25 - 严泽 / @yanze000

06/07/2017 at 10:56AM

9
#26 - David Gustavsson / @mrGustaphe

06/08/2017 at 12:06PM

9
#27 - Daniel Hjelm / @dhjelm

06/09/2017 at 05:36AM

9
#28 - Carl Egbert / @CarlOEgbert

06/09/2017 at 06:27PM

9
#29 - Joel Meyer-Hamme / @JoelMeyerHamme

06/20/2017 at 09:43PM

9
#30 - Михаил Добров / @mSuGfwFz2ZNvv5b

07/10/2017 at 05:12PM