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 9v006a90ad4d00000000084c

Filling braces

Inspired by a question on CoDidact (https://software.codidact.com/posts/296501), I wondered if Vim could offer a satisfactory ‘solution’ to this problem.

Start file
.ocean {}
.land {}
.sky {}
End file
.ocean {blue}
.land {green}
.sky {lightblue}

View Diff

1,3c1,3
< .ocean {}
< .land {}
< .sky {}
---
> .ocean {blue}
> .land {green}
> .sky {lightblue}

Solutions by @autra:

Unlock 6 remaining solutions by signing in and submitting your own entry
Created by: @bemmesr

151 active golfers, 460 entries

Solutions by @autra:
24
#26 - Augustin Trancart / @autra

10/15/2026 at 08:49AM

24
#>26 - Augustin Trancart / @autra

10/15/2026 at 08:51AM

25
#>37 - Augustin Trancart / @autra

10/15/2026 at 08:41AM

26
#>44 - Augustin Trancart / @autra

10/15/2026 at 08:41AM

27
#>59 - Augustin Trancart / @autra

10/15/2026 at 08:36AM

28
#>61 - Augustin Trancart / @autra

10/15/2026 at 08:34AM