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

176 active golfers, 335 entries

Leaderboard (lowest score wins):
17
#121 - sis / @OPhboUDXyJXMoVX

09/06/2023 at 01:13PM

17
#122 - A White Dwarf / @AWhiteDwarf1

09/08/2023 at 07:57PM

17
#123 - Lazarescu Andrei / @lazandrei19

09/15/2023 at 11:30AM

17
#124 - Alex Pepper / @pepper18608

09/15/2023 at 02:27PM

17
#125 - ilyas / @Ahaaah2071

09/18/2023 at 09:36PM

17
#126 - Андрей Куренков (Arey) / @Arey_65536

09/19/2023 at 07:51PM

17
#127 - Monkey Boy / @monkey29089

09/21/2023 at 02:41PM

18
#128 - rserch / @rserch3r

05/29/2023 at 01:47AM

18
#129 - Sergio / @SergioVl12

05/29/2023 at 05:16PM

18
#130 - Aarya / @aaryabhatia6

06/03/2023 at 10:09PM

18
#131 - Ford Chang / @Chang1Ford

06/07/2023 at 11:44AM

18
#132 - りんご姫 / @yharuhi39

06/11/2023 at 04:49AM

18
#133 - Matteo Bongiovanni / @MatBon01

06/15/2023 at 06:35PM

18
#134 - Alexandre Kholod / @wadapad07

06/20/2023 at 12:28PM

18
#135 - uppercase reducer / @uppercasereduce

06/24/2023 at 03:55PM

18
#136 - J Berc / @Jberczel

06/29/2023 at 06:23PM

18
#137 - mevmev / @mevmev8

07/07/2023 at 08:53AM

18
#138 - あべべ / @abebe123000

07/08/2023 at 06:13AM

18
#139 - Nick / @hobbnick

07/09/2023 at 06:30AM

18
#140 - Glen Huang / @hihgl

07/17/2023 at 03:33AM

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

08/03/2023 at 10:00AM

18
#142 - David / @imdavidhwang

08/07/2023 at 03:05PM

18
#143 - Divvy C. / @divvy_c

08/11/2023 at 02:39PM

18
#144 - Melker Fläskberg / @Mawkler

08/24/2023 at 11:06AM

18
#145 - weekendgolfer / @weekendgola

08/31/2023 at 02:13AM

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

05/30/2023 at 08:40AM

19
#147 - Dionysus / @user101user

05/31/2023 at 07:40PM

19
#148 - Minamoto / @Minamot31581390

06/03/2023 at 07:16AM

19
#149 - 永井奏衣 / @kanae__1101

06/04/2023 at 12:09AM

19
#150 - Ereska / @Ereska7

06/04/2023 at 08:24AM