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

CaN yOuR ViM dO ThAt? #2

Tsoding's famous "Can your Vim do that?" https://www.youtube.com/watch?v=F4xc4jQO7ck&t=1429s

Start file
Example examples[] = {
    { .src_path   = "./examples/core_basic_window.c", .bin_path   = "./build/core_basic_window", },
    { .src_path   = "./examples/core_basic_screen_manager.c", .bin_path   = "./build/core_basic_screen_manager", },
    { .src_path   = "./examples/core_input_keys.c", .bin_path   = "./build/core_input_keys", },
    { .src_path   = "./examples/shapes_colors_palette.c", .bin_path   = "./build/shapes_colors_palette", },
    { .src_path   = "./examples/tsoding_ball.c", .bin_path = "./build/tsoding_ball", },
    { .src_path   = "./examples/tsoding_snake/tsoding_snake.c", .bin_path = "./build/tsoding_snake", },
    { .src_path   = "./examples/core_input_mouse_wheel.c", .bin_path   = "./build/core_input_mouse_wheel", },
    { .src_path   = "./examples/text_writing_anim.c", .bin_path   = "./build/text_writing_anim", },
};
End file
Example examples[] = {
    {
        .src_path   = "./examples/core_basic_window.c",
        .bin_path   = "./build/core_basic_window",
        .wasm_path  = "./wasm/core_basic_window.wasm",
    },
    {
        .src_path   = "./examples/core_basic_screen_manager.c",
        .bin_path   = "./build/core_basic_screen_manager",
        .wasm_path  = "./wasm/core_basic_screen_manager.wasm",
    },
    {
        .src_path   = "./examples/core_input_keys.c",
        .bin_path   = "./build/core_input_keys",
        .wasm_path  = "./wasm/core_input_keys.wasm",
    },
    {
        .src_path   = "./examples/shapes_colors_palette.c",
        .bin_path   = "./build/shapes_colors_palette",
        .wasm_path  = "./wasm/shapes_colors_palette.wasm",
    },
    {
        .src_path   = "./examples/tsoding_ball.c",
        .bin_path = "./build/tsoding_ball",
        .wasm_path  = "./wasm/tsoding_ball.wasm",
    },
    {
        .src_path   = "./examples/tsoding_snake/tsoding_snake.c",
        .bin_path = "./build/tsoding_snake",
        .wasm_path  = "./wasm/tsoding_snake.wasm",
    },
    {
        .src_path   = "./examples/core_input_mouse_wheel.c",
        .bin_path   = "./build/core_input_mouse_wheel",
        .wasm_path  = "./wasm/core_input_mouse_wheel.wasm",
    },
    {
        .src_path   = "./examples/text_writing_anim.c",
        .bin_path   = "./build/text_writing_anim",
        .wasm_path  = "./wasm/text_writing_anim.wasm",
    },
};

View Diff

2,9c2,41
<     { .src_path   = "./examples/core_basic_window.c", .bin_path   = "./build/core_basic_window", },
<     { .src_path   = "./examples/core_basic_screen_manager.c", .bin_path   = "./build/core_basic_screen_manager", },
<     { .src_path   = "./examples/core_input_keys.c", .bin_path   = "./build/core_input_keys", },
<     { .src_path   = "./examples/shapes_colors_palette.c", .bin_path   = "./build/shapes_colors_palette", },
<     { .src_path   = "./examples/tsoding_ball.c", .bin_path = "./build/tsoding_ball", },
<     { .src_path   = "./examples/tsoding_snake/tsoding_snake.c", .bin_path = "./build/tsoding_snake", },
<     { .src_path   = "./examples/core_input_mouse_wheel.c", .bin_path   = "./build/core_input_mouse_wheel", },
<     { .src_path   = "./examples/text_writing_anim.c", .bin_path   = "./build/text_writing_anim", },
---
>     {
>         .src_path   = "./examples/core_basic_window.c",
>         .bin_path   = "./build/core_basic_window",
>         .wasm_path  = "./wasm/core_basic_window.wasm",
>     },
>     {
>         .src_path   = "./examples/core_basic_screen_manager.c",
>         .bin_path   = "./build/core_basic_screen_manager",
>         .wasm_path  = "./wasm/core_basic_screen_manager.wasm",
>     },
>     {
>         .src_path   = "./examples/core_input_keys.c",
>         .bin_path   = "./build/core_input_keys",
>         .wasm_path  = "./wasm/core_input_keys.wasm",
>     },
>     {
>         .src_path   = "./examples/shapes_colors_palette.c",
>         .bin_path   = "./build/shapes_colors_palette",
>         .wasm_path  = "./wasm/shapes_colors_palette.wasm",
>     },
>     {
>         .src_path   = "./examples/tsoding_ball.c",
>         .bin_path = "./build/tsoding_ball",
>         .wasm_path  = "./wasm/tsoding_ball.wasm",
>     },
>     {
>         .src_path   = "./examples/tsoding_snake/tsoding_snake.c",
>         .bin_path = "./build/tsoding_snake",
>         .wasm_path  = "./wasm/tsoding_snake.wasm",
>     },
>     {
>         .src_path   = "./examples/core_input_mouse_wheel.c",
>         .bin_path   = "./build/core_input_mouse_wheel",
>         .wasm_path  = "./wasm/core_input_mouse_wheel.wasm",
>     },
>     {
>         .src_path   = "./examples/text_writing_anim.c",
>         .bin_path   = "./build/text_writing_anim",
>         .wasm_path  = "./wasm/text_writing_anim.wasm",
>     },

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 29 remaining solutions by signing in and submitting your own entry
#30 Jorge Dias / @marori - Score: 115 - 10/11/25 @ 03:39
jqqwa<CR>    <Esc>f,a<CR><BS>        <Esc>$Bbla<CR><BS>    <Esc>kyypwxxxiwasm<Esc>wXf/wcwwasm<Esc>f"i.wasm<Esc>2j0q7@qkkkkkkkkkkkkkkkkkwwwi  <Esc>jjjjjhi  <Esc>ZZ

0 comments


#31 skewcy-bot / @skewcy-bot - Score: 115 - 08/18/26 @ 15:26
jqqwa<CR>    <Esc>f,a<CR><BS>        <Esc>$Bbla<CR><BS>    <Esc>kyypwxxxiwasm<Esc>wXf/wcwwasm<Esc>f"i.wasm<Esc>2j0q7@qkkkkkkkkkkkkkkkkkwwwi  <Esc>jjjjjhi  <Esc>ZZ

0 comments


Created by: @Vivida1

31 active golfers, 117 entries

Leaderboard (lowest score wins):
115
#31 - skewcy-bot / @skewcy-bot

08/18/2026 at 03:26PM