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

314 active golfers, 561 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

17
#228 - ProGamerYeet / @ProGamerYeet

10/17/2024 at 01:00PM

17
#229 - Sandy1796ii / @Sandy1796ii

10/18/2024 at 04:58PM

17
#230 - demouo / @demouo

10/19/2024 at 03:32AM

17
#231 - Chloe Brett / @chloebrett

11/09/2024 at 07:42AM

17
#232 - Berel94 / @Berel94

11/11/2024 at 03:35PM

17
#233 - Pablo Acuna / @pacuna

11/12/2024 at 01:38AM

17
#234 - Pim / @Pireax

11/12/2024 at 04:29AM

17
#235 - got_windy / @insomnight

11/25/2024 at 09:39AM

17
#236 - Swaraj Dash / @swarajdash

12/25/2024 at 08:44PM

17
#237 - 0xf00ff00f / @0xf00ff00f

01/10/2025 at 12:05AM

17
#238 - dp403aan / @dp403aan

02/07/2025 at 05:52PM

17
#239 - Nathan Priego / @nspriego

03/13/2025 at 02:03AM

18
#240 - rserch / @rserch3r

05/29/2023 at 01:47AM