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
#61 - Andreas Burg / @der_abu

07/04/2023 at 08:36PM

17
#62 - daltonridenhour / @daltonridenhour

07/05/2023 at 03:59AM

17
#63 - dakmuk / @yeongha_yang

07/07/2023 at 12:40AM

17
#64 - Noah / @NoahRosenzweig

07/08/2023 at 03:11AM

17
#65 - 咸糖🎯 / @GIA917229015

07/08/2023 at 04:26AM

17
#66 - Arne Morten Kästel / @kastel_arn

07/08/2023 at 04:11PM

17
#67 - Gs Abl / @gs_abl

07/09/2023 at 01:47PM

17
#68 - Aiden Yang / @aidenyangnn

07/11/2023 at 12:45PM

17
#69 - Pieter-Jan Lavaerts / @Pumpkin_Pie_Eat

07/12/2023 at 08:48AM

17
#70 - Mat / @matpbo

07/13/2023 at 10:33PM

17
#71 - kn95 / @phyque_zz

07/15/2023 at 12:39PM

17
#72 - Injae Kang / @abcinje

07/16/2023 at 03:52PM

17
#73 - Dylan Etris / @DylanEtris

07/17/2023 at 07:36PM

17
#74 - indebutecs / @indebutecs

07/18/2023 at 03:48PM

17
#75 - Alex / @AlexanderHeatl2

07/18/2023 at 05:58PM

17
#76 - Anshul Kamath / @anshul_kamath

07/20/2023 at 04:53PM

17
#77 - Andrew Morris / @andrew_morris

07/21/2023 at 12:42AM

17
#78 - masato@RUNTEQ43期 / @number3_mlog

07/21/2023 at 02:41AM

17
#79 - phastasmn / @phastasmn

07/22/2023 at 10:24AM

17
#80 - DocsSorted / @DocsSorted

07/23/2023 at 09:32PM

17
#81 - jyloup / @jyloup

07/24/2023 at 07:12PM

17
#82 - satetheus-vimgolf / @SVimgolf

07/24/2023 at 08:26PM

17
#83 - g-guy / @guydunigo

07/25/2023 at 10:10AM

17
#84 - Topvimgolf Score / @topvimgolfscore

07/28/2023 at 04:39AM

17
#85 - Initness / @Initness1

07/29/2023 at 07:42AM

17
#86 - naka / @nak38223985244

08/01/2023 at 01:44PM

17
#87 - Monty / @grdmnt

08/04/2023 at 06:19AM

17
#88 - Morgan B / @MorganBatt

08/04/2023 at 06:51AM

17
#89 - Lee Kian Tat Ken / @thekingtat

08/04/2023 at 05:29PM

17
#90 - David :Duan / @WeijianDuan

08/05/2023 at 01:44AM