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

267 active golfers, 478 entries

Leaderboard (lowest score wins):
18
#211 - J Berc / @Jberczel

06/29/2023 at 06:23PM

18
#212 - mevmev / @mevmev8

07/07/2023 at 08:53AM

18
#213 - あべべ / @abebe123000

07/08/2023 at 06:13AM

18
#214 - Nick / @hobbnick

07/09/2023 at 06:30AM

18
#215 - Glen Huang / @hihgl

07/17/2023 at 03:33AM

18
#216 - مرجان / @IEnfantTerribIe

08/03/2023 at 10:00AM

18
#217 - David / @imdavidhwang

08/07/2023 at 03:05PM

18
#218 - Divvy C. / @divvy_c

08/11/2023 at 02:39PM

18
#219 - Melker Fläskberg / @Mawkler

08/24/2023 at 11:06AM

18
#220 - weekendgolfer / @weekendgola

08/31/2023 at 02:13AM

18
#221 - Alex Bogovich / @bogovichdev

10/18/2023 at 07:22PM

18
#222 - mathetesxristou / @mathetesxristou

11/26/2023 at 12:01AM

18
#223 - Fabrizio Perria / @FPerria

12/02/2023 at 03:26PM

18
#224 - Fabrizio Perria / @FabrizioPerria

12/02/2023 at 03:29PM

18
#225 - Rob Pilling / @bobrippling

12/14/2023 at 09:39AM

18
#226 - Yordan Boikov / @yboikov

01/07/2024 at 03:03PM

18
#227 - Druhan Shah / @DruhanShah

01/12/2024 at 07:54AM

18
#228 - dehi / @dehidehidehi

02/11/2024 at 09:40PM

18
#229 - Gerrit Proessl / @g3rrit

04/10/2024 at 01:42PM

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

05/30/2023 at 08:40AM

19
#231 - Dionysus / @user101user

05/31/2023 at 07:40PM

19
#232 - Minamoto / @Minamot31581390

06/03/2023 at 07:16AM

19
#233 - 永井奏衣 / @kanae__1101

06/04/2023 at 12:09AM

19
#234 - Ereska / @Ereska7

06/04/2023 at 08:24AM

19
#235 - Jake Shomer / @jake_shomer

06/09/2023 at 03:40PM

19
#236 - funorange / @FunOrange42

06/13/2023 at 05:48PM

19
#237 - Roman Pozdeev / @YaPozdeev

06/14/2023 at 02:18PM

19
#238 - Ibby / @sleepy_swords

06/18/2023 at 02:19PM

19
#239 - dennis w / @denniswld

06/27/2023 at 12:16PM

19
#240 - erik.forex / @ErikForex

06/30/2023 at 06:37AM