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 by @KaranVaity:

Unlock 10 remaining solutions by signing in and submitting your own entry
Created by: @_bruab_

99 active golfers, 287 entries

Solutions by @KaranVaity:
15
#69 - Karan / @KaranVaity

06/14/2025 at 05:42PM

16
#>69 - Karan / @KaranVaity

06/14/2025 at 05:43PM

16
#>69 - Karan / @KaranVaity

06/14/2025 at 05:44PM

16
#>69 - Karan / @KaranVaity

06/14/2025 at 05:45PM

16
#>69 - Karan / @KaranVaity

06/14/2025 at 05:45PM

17
#>83 - Karan / @KaranVaity

06/14/2025 at 05:40PM

18
#>86 - Karan / @KaranVaity

06/14/2025 at 05:38PM

18
#>86 - Karan / @KaranVaity

06/14/2025 at 05:39PM

20
#>91 - Karan / @KaranVaity

06/14/2025 at 05:47PM

26
#>99 - Karan / @KaranVaity

06/14/2025 at 05:36PM