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):
20
#301 - mawkish / @mawkish

01/25/2024 at 11:07PM

20
#302 - TheSmallTeaBoi / @TheSmallTeaBoi

06/17/2024 at 01:31AM

21
#303 - Ranganath Pai / @dominoanty

06/15/2023 at 06:53AM

21
#304 - Harrison Morrow / @HJPMorrow

06/15/2023 at 09:36AM

21
#305 - LandR / @ListenAndR

10/13/2023 at 12:54AM

21
#306 - mst_ysk / @mstysk

03/06/2024 at 09:59AM

21
#307 - lejeunel / @lejeunel

04/07/2024 at 11:17AM

22
#308 - jasonlee / @jasonle61136657

06/15/2023 at 10:17AM

22
#309 - dennis / @nagolove

04/25/2024 at 05:31PM

23
#310 - pagedMov / @pagedMov

05/01/2024 at 05:45AM

28
#311 - Isaak Meier / @IsaakMeier

04/08/2024 at 11:17PM

32
#312 - techtechtech / @techtechtech12

06/06/2023 at 02:05PM

40
#313 - miron- / @miron2363

04/18/2024 at 01:46PM

85
#314 - Sery Park / @sisi_with_vim

06/13/2023 at 05:12PM