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

301 active golfers, 540 entries

Leaderboard (lowest score wins):
18
#241 - مرجان / @IEnfantTerribIe

08/03/2023 at 10:00AM

18
#242 - David / @imdavidhwang

08/07/2023 at 03:05PM

18
#243 - Divvy C. / @divvy_c

08/11/2023 at 02:39PM

18
#244 - Melker Fläskberg / @Mawkler

08/24/2023 at 11:06AM

18
#245 - weekendgolfer / @weekendgola

08/31/2023 at 02:13AM

18
#246 - Alex Bogovich / @bogovichdev

10/18/2023 at 07:22PM

18
#247 - mathetesxristou / @mathetesxristou

11/26/2023 at 12:01AM

18
#248 - Fabrizio Perria / @FPerria

12/02/2023 at 03:26PM

18
#249 - Fabrizio Perria / @FabrizioPerria

12/02/2023 at 03:29PM

18
#250 - Rob Pilling / @bobrippling

12/14/2023 at 09:39AM

18
#251 - Yordan Boikov / @yboikov

01/07/2024 at 03:03PM

18
#252 - Druhan Shah / @DruhanShah

01/12/2024 at 07:54AM

18
#253 - dehi / @dehidehidehi

02/11/2024 at 09:40PM

18
#254 - Gerrit Proessl / @g3rrit

04/10/2024 at 01:42PM

18
#255 - logerse / @logerse

04/16/2024 at 03:08PM

18
#256 - kbrashem / @kbrashem

05/17/2024 at 10:28PM

18
#257 - Pablo Acuna / @pacuna

08/31/2024 at 01:49AM

18
#258 - Janusz Spatz / @janusz-anue

09/20/2024 at 10:49PM

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

05/30/2023 at 08:40AM

19
#260 - Dionysus / @user101user

05/31/2023 at 07:40PM

19
#261 - Minamoto / @Minamot31581390

06/03/2023 at 07:16AM

19
#262 - 永井奏衣 / @kanae__1101

06/04/2023 at 12:09AM

19
#263 - Ereska / @Ereska7

06/04/2023 at 08:24AM

19
#264 - Jake Shomer / @jake_shomer

06/09/2023 at 03:40PM

19
#265 - funorange / @FunOrange42

06/13/2023 at 05:48PM

19
#266 - Roman Pozdeev / @YaPozdeev

06/14/2023 at 02:18PM

19
#267 - Ibby / @sleepy_swords

06/18/2023 at 02:19PM

19
#268 - dennis w / @denniswld

06/27/2023 at 12:16PM

19
#269 - erik.forex / @ErikForex

06/30/2023 at 06:37AM

19
#270 - Hoon Wee / @hoonweedev

07/01/2023 at 12:36PM