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 299 remaining solutions by signing in and submitting your own entry
#300 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

300 active golfers, 538 entries

Leaderboard (lowest score wins):
19
#271 - tch1001 / @tch1001

07/18/2023 at 06:09PM

19
#272 - Duy nguyễn / @Duycld03

07/19/2023 at 07:01PM

19
#273 - 捣蛋鬼 / @NeikeShi

07/20/2023 at 06:04PM

19
#274 - 王雅晨 / @Yachen_Wang

08/01/2023 at 01:11PM

19
#275 - Michel Ehmen / @MichelEhmen

08/10/2023 at 11:42AM

19
#276 - Heiss / @Heisstea

08/19/2023 at 04:42PM

19
#277 - ATW / @viveremedices

09/11/2023 at 05:14PM

19
#278 - philikarus / @philikarus

02/06/2024 at 03:10PM

19
#279 - Mikhail Chugunkov / @poslegm

03/03/2024 at 05:49PM

19
#280 - Piku Haku / @ha_ku_pi_ku

09/26/2024 at 04:00AM

20
#281 - Felz33 / @felz33

06/05/2023 at 02:53AM

20
#282 - Daniel Moore / @xdhmoore

06/07/2023 at 05:11AM

20
#283 - 一般通过白银(表) / @shiroganetsumug

06/07/2023 at 07:51PM

20
#284 - Yoshi Nets / @yoshinets

06/09/2023 at 03:44PM

20
#285 - YinChuang / @yinchuang96

06/14/2023 at 05:44PM

20
#286 - jack2023xxx / @jack2023xxx

08/25/2023 at 05:53AM

20
#287 - mawkish / @mawkish

01/25/2024 at 11:07PM

20
#288 - TheSmallTeaBoi / @TheSmallTeaBoi

06/17/2024 at 01:31AM

21
#289 - Ranganath Pai / @dominoanty

06/15/2023 at 06:53AM

21
#290 - Harrison Morrow / @HJPMorrow

06/15/2023 at 09:36AM

21
#291 - LandR / @ListenAndR

10/13/2023 at 12:54AM

21
#292 - mst_ysk / @mstysk

03/06/2024 at 09:59AM

21
#293 - lejeunel / @lejeunel

04/07/2024 at 11:17AM

22
#294 - jasonlee / @jasonle61136657

06/15/2023 at 10:17AM

22
#295 - dennis / @nagolove

04/25/2024 at 05:31PM

23
#296 - pagedMov / @pagedMov

05/01/2024 at 05:45AM

28
#297 - Isaak Meier / @IsaakMeier

04/08/2024 at 11:17PM

32
#298 - techtechtech / @techtechtech12

06/06/2023 at 02:05PM

40
#299 - miron- / @miron2363

04/18/2024 at 01:46PM

85
#300 - Sery Park / @sisi_with_vim

06/13/2023 at 05:12PM