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 @GavinKoeng:

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

100 active golfers, 296 entries

Solutions by @GavinKoeng:
9
#46 - Gavin / @GavinKoeng

03/16/2026 at 01:35AM

11
#>49 - Gavin / @GavinKoeng

03/16/2026 at 01:35AM

12
#>51 - Gavin / @GavinKoeng

03/16/2026 at 01:34AM

13
#>53 - Gavin / @GavinKoeng

03/16/2026 at 01:34AM

14
#>54 - Gavin / @GavinKoeng

03/16/2026 at 01:33AM

15
#>70 - Gavin / @GavinKoeng

03/16/2026 at 01:32AM

17
#>85 - Gavin / @GavinKoeng

03/16/2026 at 01:31AM

19
#>89 - Gavin / @GavinKoeng

03/16/2026 at 01:31AM

25
#>99 - Gavin / @GavinKoeng

03/16/2026 at 01:30AM