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

CaN yOuR ViM dO ThAt? #1

Tsoding's famous "Can your Vim do that?" https://youtu.be/Bafo3hhheHU?si=DfcT4sUEMTSAevnx&t=1091

Start file
void platform_fill_rect(i32 x, i32 y, i32 w, i32 h, u32 color)
{
}

void platform_stroke_rect(i32 x, i32 y, i32 w, i32 h, u32 color)
{
}

void platform_fill_text(i32 x, i32 y, const char *text, u32 size, u32 color, Align align)
{
}

void platform_stroke_line(i32 x1, i32 y1, i32 x2, i32 y2, u32 color)
{
}

void platform_panic(const char *file_path, i32 line, const char *message)
{
}

void platform_log(const char *message)
{
}

End file
void platform_fill_rect(i32 x, i32 y, i32 w, i32 h, u32 color)
{
    assert(0 && "TODO: platform_fill_rect");
}

void platform_stroke_rect(i32 x, i32 y, i32 w, i32 h, u32 color)
{
    assert(0 && "TODO: platform_stroke_rect");
}

void platform_fill_text(i32 x, i32 y, const char *text, u32 size, u32 color, Align align)
{
    assert(0 && "TODO: platform_fill_text");
}

void platform_stroke_line(i32 x1, i32 y1, i32 x2, i32 y2, u32 color)
{
    assert(0 && "TODO: platform_stroke_line");
}

void platform_panic(const char *file_path, i32 line, const char *message)
{
    assert(0 && "TODO: platform_panic");
}

void platform_log(const char *message)
{
    assert(0 && "TODO: platform_log");
}

View Diff

2a3
>     assert(0 && "TODO: platform_fill_rect");
6a8
>     assert(0 && "TODO: platform_stroke_rect");
10a13
>     assert(0 && "TODO: platform_fill_text");
14a18
>     assert(0 && "TODO: platform_stroke_line");
18a23
>     assert(0 && "TODO: platform_panic");
22a28
>     assert(0 && "TODO: platform_log");

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 99 remaining solutions by signing in and submitting your own entry
#100 Adriano / @AdrianoAla - Score: 83 - 07/28/25 @ 12:35
qa0wyejo<BS><Tab><BS>    assert(0 && "TODO: <fd-6b>pA")<fd-6b>A:<fd-6b>A<BS>;<fd-6b>qjjVG:g/void/exe "normal @a"<CR>:q<CR>:wq<CR>

0 comments


Created by: @Vivida1

100 active golfers, 256 entries

Leaderboard (lowest score wins):
46
#61 - migoohao / @migoohao

06/22/2025 at 09:15AM

46
#62 - EthanMcGuire / @EthanMcGuire

01/05/2026 at 06:07PM

46
#63 - Mikhail Lavrentiev / @lavrentievms

01/07/2026 at 11:40PM

47
#64 - Vivida / @Vivida1

10/01/2024 at 01:54PM

47
#65 - Seher Dilek / @SeherDilek

11/10/2024 at 10:07PM

47
#66 - editor3D / @editor3D

11/19/2024 at 02:34PM

47
#67 - Rodi-Janssen / @Rodi-Janssen

11/26/2024 at 02:12PM

47
#68 - Tzadiko / @Tzadiko

12/16/2024 at 12:07AM

47
#69 - Heitor Dantas / @heitordnts

12/22/2024 at 05:27PM

47
#70 - Frédéric Heulin / @talineo

12/29/2024 at 11:08PM

47
#71 - chujDK / @chujDK

02/25/2025 at 05:33AM

47
#72 - Jonas Krumm / @Dedphish

03/21/2025 at 10:13PM

47
#73 - jonas-grobe / @jonas-grobe

04/16/2025 at 06:41PM

47
#74 - ohwell / @KiranClose

05/10/2025 at 08:05PM

47
#75 - Matthew Cooper / @mkcmkc

10/14/2025 at 09:55PM

48
#76 - Håkon Anders Strømsodd / @haakon8855

10/16/2024 at 08:52AM

48
#77 - got_windy / @insomnight

10/19/2024 at 12:07AM

48
#78 - daniilsvirin / @daniilsvirin

10/21/2024 at 08:42AM

48
#79 - BensonLing0925 / @BensonLing0925

11/08/2024 at 08:12AM

48
#80 - db-fodor / @db-fodor

10/16/2025 at 09:05PM

48
#81 - Purple-Chicken / @Purple-Chicken

01/23/2026 at 05:49PM

49
#82 - Brett Collins / @brett-collins_cbhq

10/25/2024 at 12:32AM

49
#83 - thedvd98 / @thedvd98

11/17/2024 at 09:45PM

50
#84 - Brian Curless / @bwcurless

02/12/2025 at 06:19PM

50
#85 - enaygit / @enaygit

02/15/2025 at 10:25PM

50
#86 - Dani Bengl / @cb341

12/22/2025 at 09:42PM

51
#87 - Aaron Hunt / @ach5910

10/15/2025 at 11:18PM

51
#88 - Mohammed Tangestani / @tangestani

01/05/2026 at 02:21AM

51
#89 - Frederik F / @FrederikFrederiksenMancofi

01/05/2026 at 10:04AM

52
#90 - Alexander Dyadyushenko / @GooKv

04/05/2025 at 02:32PM