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

282 active golfers, 501 entries

Leaderboard (lowest score wins):
21
#271 - Ranganath Pai / @dominoanty

06/15/2023 at 06:53AM

21
#272 - Harrison Morrow / @HJPMorrow

06/15/2023 at 09:36AM

21
#273 - LandR / @ListenAndR

10/13/2023 at 12:54AM

21
#274 - mst_ysk / @mstysk

03/06/2024 at 09:59AM

21
#275 - lejeunel / @lejeunel

04/07/2024 at 11:17AM

22
#276 - jasonlee / @jasonle61136657

06/15/2023 at 10:17AM

22
#277 - dennis / @nagolove

04/25/2024 at 05:31PM

23
#278 - pagedMov / @pagedMov

05/01/2024 at 05:45AM

28
#279 - Isaak Meier / @IsaakMeier

04/08/2024 at 11:17PM

32
#280 - techtechtech / @techtechtech12

06/06/2023 at 02:05PM

40
#281 - miron- / @miron2363

04/18/2024 at 01:46PM

85
#282 - Sery Park / @sisi_with_vim

06/13/2023 at 05:12PM