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):
17
#211 - Tsimon Dorakh / @Tsimon-Dorakh

06/10/2024 at 05:47AM

17
#212 - Ondrej Poradek / @OPoradek

06/13/2024 at 01:07PM

17
#213 - ahenches / @ahenches

06/21/2024 at 09:49AM

17
#214 - Giacomo Sansone / @pcineverdies

07/05/2024 at 07:09PM

17
#215 - Marcos Almeida / @maurelio1234

07/20/2024 at 06:21PM

17
#216 - Namdrib / @Namdrib

07/21/2024 at 12:11PM

17
#217 - Knaughty / @Kn4ughty

08/12/2024 at 11:43PM

17
#218 - Christian Kovanen / @Huijaaja42

08/15/2024 at 02:38PM

17
#219 - nickGPT / @nickandbro

08/23/2024 at 06:41AM

17
#220 - Prem Netsuwan / @grnnja

08/26/2024 at 10:59PM

17
#221 - Christopher Arausa | Rathma / @wrathofrathma

08/28/2024 at 05:11AM

17
#222 - KoroneListener / @KoroneListener

09/05/2024 at 03:09PM

17
#223 - IroncladDev 🔩 / @IroncladDev

09/17/2024 at 09:18PM

17
#224 - ak@developer / @Ajay-056

09/21/2024 at 02:26PM

17
#225 - Gustav Kristensen / @gustavkrist

10/01/2024 at 11:25PM

17
#226 - DayuanX / @DayuanX

10/05/2024 at 05:58AM

17
#227 - Shoob / @martinshoob

10/14/2024 at 11:03AM

18
#228 - rserch / @rserch3r

05/29/2023 at 01:47AM

18
#229 - Sergio / @SergioVl12

05/29/2023 at 05:16PM

18
#230 - Aarya / @aaryabhatia6

06/03/2023 at 10:09PM

18
#231 - Ford Chang / @Chang1Ford

06/07/2023 at 11:44AM

18
#232 - りんご姫 / @yharuhi39

06/11/2023 at 04:49AM

18
#233 - Matteo Bongiovanni / @MatBon01

06/15/2023 at 06:35PM

18
#234 - Alexandre Kholod / @wadapad07

06/20/2023 at 12:28PM

18
#235 - uppercase reducer / @uppercasereduce

06/24/2023 at 03:55PM

18
#236 - J Berc / @Jberczel

06/29/2023 at 06:23PM

18
#237 - mevmev / @mevmev8

07/07/2023 at 08:53AM

18
#238 - あべべ / @abebe123000

07/08/2023 at 06:13AM

18
#239 - Nick / @hobbnick

07/09/2023 at 06:30AM

18
#240 - Glen Huang / @hihgl

07/17/2023 at 03:33AM