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):
#91 - Dennis Hübner / @hueby
09/16/2026 at 06:08AM
09/23/2026 at 07:40PM
09/24/2026 at 03:34PM
10/05/2026 at 08:37AM
10/07/2026 at 07:45PM
10/14/2026 at 04:48AM
10/15/2026 at 03:47AM
10/21/2026 at 04:56AM
10/26/2026 at 08:32AM
10/30/2026 at 01:09PM
09/02/2026 at 02:28AM
09/05/2026 at 11:03AM
09/05/2026 at 02:57PM
09/11/2026 at 11:02PM
09/23/2026 at 01:38AM
09/23/2026 at 09:34AM
09/24/2026 at 05:56AM
09/27/2026 at 08:19PM
10/06/2026 at 10:12AM
11/06/2026 at 05:21PM
08/29/2026 at 02:00PM
09/02/2026 at 03:18AM
09/04/2026 at 09:53PM
09/13/2026 at 06:13PM
09/20/2026 at 03:50PM
09/25/2026 at 04:32PM
09/26/2026 at 09:29AM
09/26/2026 at 09:36PM
10/05/2026 at 07:43PM