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

309 active golfers, 554 entries

Leaderboard (lowest score wins):
17
#31 - Olivier Bégassat / @zk_evm

06/11/2023 at 11:26AM

17
#32 - Austin Meier / @AustinMeier_

06/11/2023 at 07:31PM

17
#33 - Jordan Woods / @JordanW09204552

06/11/2023 at 08:31PM

17
#34 - fengc / @fengc

06/12/2023 at 09:30AM

17
#35 - vimmac / @vimmac13823

06/13/2023 at 10:52AM

17
#36 - Spam Mail / @mrfdot

06/14/2023 at 01:41AM

17
#37 - Smylers / @Smylers2

06/14/2023 at 10:22AM

17
#38 - jeff / @jeff85959854520

06/16/2023 at 04:18PM

17
#39 - Niranjan Ghule / @ghuleniranjan

06/17/2023 at 03:01PM

17
#40 - Jai Pandya / @jaipandya

06/17/2023 at 06:23PM

17
#41 - Godek Dominik / @dominik27182818

06/18/2023 at 06:02AM

17
#42 - A. L. / @lnchk

06/18/2023 at 03:25PM

17
#43 - Tanzeel Kazi / @tanzeelkazi

06/20/2023 at 04:34AM

17
#44 - Johan Isaksson / @JohanIsaks56389

06/22/2023 at 05:18PM

17
#45 - z00master / @z00master

06/22/2023 at 11:30PM

17
#46 - Daniel Simionato / @weseven

06/23/2023 at 12:09PM

17
#47 - Thales / @ThalesII

06/23/2023 at 10:04PM

17
#48 - ant0sha / @ant0shaR

06/25/2023 at 05:49AM

17
#49 - Maarten Craeynest / @Maarten_Cr

06/25/2023 at 11:16AM

17
#50 - Marcus Ramse / @JerwuQu

06/27/2023 at 08:26AM

17
#51 - samuel erlands / @ErlandsSam52210

06/27/2023 at 09:00AM

17
#52 - Abdelrahman Madkour / @A3Madkour

06/27/2023 at 12:56PM

17
#53 - wsg / @wsg31986835

06/27/2023 at 01:16PM

17
#54 - gravestench / @noisevoid

06/27/2023 at 04:59PM

17
#55 - b1gz / @_b1gz

06/28/2023 at 10:49PM

17
#56 - Golf Vim / @GolfVim11388

06/30/2023 at 05:49PM

17
#57 - Petro Тrouq / @zulolosi

07/01/2023 at 03:50PM

17
#58 - Bertold E. / @bertold_e66506

07/02/2023 at 11:09AM

17
#59 - Vic Segers / @VicSegers

07/03/2023 at 01:29PM

17
#60 - BLOO / @BLOOpota

07/04/2023 at 08:30AM