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 47 remaining solutions by signing in and submitting your own entry
#48 Benoit Tigeot / Benoit_Tgt - Score: 17 - 06/08/17 @ 16:54
Go<Esc>d{kPj<C-V>jjI  <Esc>ZZ

0 comments

#49 akanb / GAkt6L6SlKhy8zA - Score: 17 - 06/29/17 @ 00:01
}d}Pj<C-V>jjI  <Esc>Go<Esc>ZZ

0 comments

#50 Gurukandhamoorthi / Gurukandhamoor1 - Score: 17 - 07/10/17 @ 10:35
:3d<CR>j<C-V>GI  <Esc>Gpo<Esc>ZZ

0 comments

#51 sebastian pech / specht08 - Score: 18 - 06/08/17 @ 16:14
5Gd%kPO<Esc>j<C-V>%I  <Esc>1ZZ

0 comments

#52 Hector Davensburg / hdavensburg - Score: 19 - 05/13/17 @ 19:00
GV[{d<Up>Pv<C-V><Down><Down>I  <Esc>O<Esc>ZZ

0 comments

#53 rahul bhola / theRahulBhola - Score: 19 - 05/21/17 @ 10:10
Go<Esc>d{kPj<C-V>2jI  <Esc>:wq<CR>

0 comments

#54 Eugene Oskin / EugeneOskin - Score: 20 - 05/14/17 @ 15:33
Go}<CR><Esc>2k<C-V>kkI  <Esc>kkddZZ

0 comments

#55 James Houghton / jamesthoughton - Score: 20 - 07/20/17 @ 16:04
jo<Esc>6GdG2kpi  <Esc>j.j.ZZ

0 comments

#56 Luke DeWitt / lanewalkerx - Score: 22 - 05/14/17 @ 17:12
jjddji  <Esc>j.o<BS><BS>}ZZ<BS><BS><Esc>ZZ

0 comments

#57 python-tweepy / python_tweepy - Score: 23 - 05/14/17 @ 21:56
jjddj<C-V>GI  <Esc>jGo<BS><BS>}<CR><Esc>:wq<CR>

0 comments

#58 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

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

0 comments

Created by: _bruab_

59 active golfers, 157 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

10
#31 - Sean Rodman / bassman7689

05/13/2017 at 12:48AM

11
#32 - Jenny Johnson / Kippz07

05/09/2017 at 11:44AM

11
#33 - Victor Ramirez / virako

05/31/2017 at 09:29PM

12
#34 - tom patterson / pattertom

05/10/2017 at 02:17PM

12
#35 - Tushaar Kamat / KamatTushaar

05/14/2017 at 01:11PM

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

05/08/2017 at 10:29PM

13
#37 - ЯRicardo / TresErresCo

05/15/2017 at 01:16AM

14
#38 - herbage / herbage2

05/08/2017 at 07:07PM

15
#39 - Brian Hall / _bruab_

05/08/2017 at 01:39PM

15
#40 - Mike Marion / mikejmarion

05/10/2017 at 01:13AM

15
#41 - Aman Singhal / helixinverse

05/14/2017 at 02:05PM

17
#42 - James / Dronak

05/08/2017 at 09:41PM

17
#43 - tPenguinLTG / tpenguinltg

05/09/2017 at 12:03AM

17
#44 - Edouard Piette / EdPiette

05/09/2017 at 08:24AM

17
#45 - Chris Fleming / chrisfl

05/10/2017 at 10:50PM

17
#46 - Tommaso Leonardi / tom_leon

05/11/2017 at 01:41PM

17
#47 - Melvin Cheung / MelvinCheung

05/23/2017 at 01:52AM

17
#48 - Benoit Tigeot / Benoit_Tgt

06/08/2017 at 04:54PM

17
#49 - akanb / GAkt6L6SlKhy8zA

06/29/2017 at 12:01AM

17
#50 - Gurukandhamoorthi / Gurukandhamoor1

07/10/2017 at 10:35AM

18
#51 - sebastian pech / specht08

06/08/2017 at 04:14PM

19
#52 - Hector Davensburg / hdavensburg

05/13/2017 at 07:00PM

19
#53 - rahul bhola / theRahulBhola

05/21/2017 at 10:10AM

20
#54 - Eugene Oskin / EugeneOskin

05/14/2017 at 03:33PM

20
#55 - James Houghton / jamesthoughton

07/20/2017 at 04:04PM

22
#56 - Luke DeWitt / lanewalkerx

05/14/2017 at 05:12PM

23
#57 - python-tweepy / python_tweepy

05/14/2017 at 09:56PM

24
#58 - Heron Medeiros / heronmedeiros

05/08/2017 at 03:15PM

24
#59 - Ryan Coopersmith / RyanCoopersmit1

06/04/2017 at 05:12PM