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}
1,3c1,3
< .ocean {}
< .land {}
< .sky {}
---
> .ocean {blue}
> .land {green}
> .sky {lightblue}
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
150 remaining solutions by
signing in and submitting your own entry
#151
Jonathan Buss / @Jboss-10 -
Score: 53 -
11/06/26 @ 18:51
<Right><Right><Right><Right><Right><Right><Right><Right>blue<Esc><Up><Right><Right><Right><Right><Right><Right><Right><Right>a<Left>blue<Down><Left>green<Down>l<BS><Left>lightblue<Esc>:wq<CR>
0 comments
151 active golfers, 460 entries
Leaderboard (lowest score wins):
10/07/2026 at 04:41PM
09/06/2026 at 11:11AM
09/09/2026 at 06:58AM
09/13/2026 at 06:27AM
10/08/2026 at 01:48PM
10/10/2026 at 10:36PM
10/19/2026 at 06:04PM
11/05/2026 at 01:36PM
09/11/2026 at 08:05PM
10/06/2026 at 01:44AM
10/09/2026 at 01:36PM
11/08/2026 at 12:03PM
10/19/2026 at 09:46AM
11/05/2026 at 04:38AM
09/23/2026 at 08:06PM
10/05/2026 at 02:39PM
10/07/2026 at 09:11AM
10/08/2026 at 09:57PM
11/05/2026 at 06:25AM
09/25/2026 at 11:51PM
10/17/2026 at 04:25AM
09/30/2026 at 08:09AM
10/07/2026 at 09:25PM
10/07/2026 at 06:15PM
09/11/2026 at 08:22AM
10/04/2026 at 11:21AM
10/13/2026 at 10:17PM
10/08/2026 at 07:13AM
09/18/2026 at 09:28PM
09/02/2026 at 08:09AM