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

271 active golfers, 485 entries

Leaderboard (lowest score wins):
19
#241 - Ibby / @sleepy_swords

06/18/2023 at 02:19PM

19
#242 - dennis w / @denniswld

06/27/2023 at 12:16PM

19
#243 - erik.forex / @ErikForex

06/30/2023 at 06:37AM

19
#244 - Hoon Wee / @hoonweedev

07/01/2023 at 12:36PM

19
#245 - Jimmy Shamas / @Typhode

07/16/2023 at 10:46PM

19
#246 - tch1001 / @tch1001

07/18/2023 at 06:09PM

19
#247 - Duy nguyễn / @Duycld03

07/19/2023 at 07:01PM

19
#248 - 捣蛋鬼 / @NeikeShi

07/20/2023 at 06:04PM

19
#249 - 王雅晨 / @Yachen_Wang

08/01/2023 at 01:11PM

19
#250 - Michel Ehmen / @MichelEhmen

08/10/2023 at 11:42AM

19
#251 - Heiss / @Heisstea

08/19/2023 at 04:42PM

19
#252 - ATW / @viveremedices

09/11/2023 at 05:14PM

19
#253 - philikarus / @philikarus

02/06/2024 at 03:10PM

19
#254 - Mikhail Chugunkov / @poslegm

03/03/2024 at 05:49PM

20
#255 - Felz33 / @felz33

06/05/2023 at 02:53AM

20
#256 - Daniel Moore / @xdhmoore

06/07/2023 at 05:11AM

20
#257 - 一般通过白银(表) / @shiroganetsumug

06/07/2023 at 07:51PM

20
#258 - Yoshi Nets / @yoshinets

06/09/2023 at 03:44PM

20
#259 - YinChuang / @yinchuang96

06/14/2023 at 05:44PM

20
#260 - jack2023xxx / @jack2023xxx

08/25/2023 at 05:53AM

20
#261 - mawkish / @mawkish

01/25/2024 at 11:07PM

21
#262 - Ranganath Pai / @dominoanty

06/15/2023 at 06:53AM

21
#263 - Harrison Morrow / @HJPMorrow

06/15/2023 at 09:36AM

21
#264 - LandR / @ListenAndR

10/13/2023 at 12:54AM

21
#265 - mst_ysk / @mstysk

03/06/2024 at 09:59AM

21
#266 - lejeunel / @lejeunel

04/07/2024 at 11:17AM

22
#267 - jasonlee / @jasonle61136657

06/15/2023 at 10:17AM

28
#268 - Isaak Meier / @IsaakMeier

04/08/2024 at 11:17PM

32
#269 - techtechtech / @techtechtech12

06/06/2023 at 02:05PM

40
#270 - miron- / @miron2363

04/18/2024 at 01:46PM