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

Surround the 'z' character with brackets, quotes, and print as formatted string.

Surround the 'z' character with brackets, quotes, and print as formatted string.

Start file
z
End file
print(f"{z}")

View Diff

1c1
< z
\ No newline at end of file
---
> print(f"{z}")
\ No newline at end of file

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 313 remaining solutions by signing in and submitting your own entry
#314 Sery Park / @sisi_with_vim - Score: 85 - 06/13/23 @ 17:12
liprint("<BS>f"{<BS><BS>{"<BS><BS>"{l<BS><Esc>la}")<Esc>:<CR><Down><Down><Down><Down><Down><Down><Down>i<Esc>hhhhhhhhhhhhhhhhhhhhhhhlllllllllllll:WQ<BS><BS>wq<CR>

0 comments


Created by: @rserch3r

314 active golfers, 561 entries

Leaderboard (lowest score wins):
18
#271 - Benjamin Reißaus / @BenReissaus

02/01/2025 at 11:28PM

19
#272 - ? bot a.k.a. Seeker / @Seeker_98

05/30/2023 at 08:40AM

19
#273 - Dionysus / @user101user

05/31/2023 at 07:40PM

19
#274 - Minamoto / @Minamot31581390

06/03/2023 at 07:16AM

19
#275 - 永井奏衣 / @kanae__1101

06/04/2023 at 12:09AM

19
#276 - Ereska / @Ereska7

06/04/2023 at 08:24AM

19
#277 - Jake Shomer / @jake_shomer

06/09/2023 at 03:40PM

19
#278 - funorange / @FunOrange42

06/13/2023 at 05:48PM

19
#279 - Roman Pozdeev / @YaPozdeev

06/14/2023 at 02:18PM

19
#280 - Ibby / @sleepy_swords

06/18/2023 at 02:19PM

19
#281 - dennis w / @denniswld

06/27/2023 at 12:16PM

19
#282 - erik.forex / @ErikForex

06/30/2023 at 06:37AM

19
#283 - Hoon Wee / @hoonweedev

07/01/2023 at 12:36PM

19
#284 - Jimmy Shamas / @Typhode

07/16/2023 at 10:46PM

19
#285 - tch1001 / @tch1001

07/18/2023 at 06:09PM

19
#286 - Duy nguyễn / @Duycld03

07/19/2023 at 07:01PM

19
#287 - 捣蛋鬼 / @NeikeShi

07/20/2023 at 06:04PM

19
#288 - 王雅晨 / @Yachen_Wang

08/01/2023 at 01:11PM

19
#289 - Michel Ehmen / @MichelEhmen

08/10/2023 at 11:42AM

19
#290 - Heiss / @Heisstea

08/19/2023 at 04:42PM

19
#291 - ATW / @viveremedices

09/11/2023 at 05:14PM

19
#292 - philikarus / @philikarus

02/06/2024 at 03:10PM

19
#293 - Mikhail Chugunkov / @poslegm

03/03/2024 at 05:49PM

19
#294 - Piku Haku / @ha_ku_pi_ku

09/26/2024 at 04:00AM

20
#295 - Felz33 / @felz33

06/05/2023 at 02:53AM

20
#296 - Daniel Moore / @xdhmoore

06/07/2023 at 05:11AM

20
#297 - 一般通过白银 / @shiroganetsumug

06/07/2023 at 07:51PM

20
#298 - Yoshi Nets / @yoshinets

06/09/2023 at 03:44PM

20
#299 - YinChuang / @yinchuang96

06/14/2023 at 05:44PM

20
#300 - jack2023xxx / @jack2023xxx

08/25/2023 at 05:53AM