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
#1 - someperson150 / @someperson150

05/29/2023 at 11:19AM

17
#2 - John Braxler / @braxler

05/29/2023 at 03:55PM

17
#3 - canalun / @i_am_canalun_

05/29/2023 at 04:16PM

17
#4 - Caleb / @cwighty13

05/29/2023 at 08:57PM

17
#5 - SmoggyFog / @SmoggyFog

05/30/2023 at 05:47AM

17
#6 - James / @Dronak

05/30/2023 at 07:15PM

17
#7 - V / @account_test_k

05/31/2023 at 06:44AM

17
#8 - Sean Dubb / @seandubb_

05/31/2023 at 08:32PM

17
#9 - olivier chabot / @chabotlongboard

05/31/2023 at 11:57PM

17
#10 - Kirill Esakov / @skychik_

06/01/2023 at 07:51AM

17
#11 - Sourabh Raj Jaiswal / @sourabhrj31

06/01/2023 at 02:36PM

17
#12 - jessepye / @jessepye

06/01/2023 at 10:46PM

17
#13 - Иван / @wansmer

06/02/2023 at 06:56AM

17
#14 - わーお / @lwgZVRoOQ8Nf6VG

06/02/2023 at 10:35AM

17
#15 - Fabian Ahbeck / @FAhbeck

06/02/2023 at 10:10PM

17
#16 - Zephyr On Call / @zephyr_on_call

06/04/2023 at 03:58PM

17
#17 - Daniel Keast / @dkeast82

06/05/2023 at 10:28AM

17
#18 - Old-AI / @OldAI5

06/06/2023 at 02:16AM

17
#19 - Hypnotist4825 / @hypnotist491338

06/06/2023 at 10:02AM

17
#20 - Fazlul Shahriar / @fazlulshahriar

06/07/2023 at 03:44AM

17
#21 - Shreeram / @Shrimpraam

06/07/2023 at 07:37AM

17
#22 - adeel hussain / @adeelhussain

06/07/2023 at 12:04PM

17
#23 - djheidihoe / @djheidihoe1

06/07/2023 at 12:51PM

17
#24 - Nicolas Marier / @NicMarier

06/07/2023 at 03:18PM

17
#25 - RosaTryp / @RosaTryp

06/07/2023 at 05:26PM

17
#26 - Kha Nguyen / @__ngtrongkha

06/09/2023 at 07:01AM

17
#27 - sap / @sap38838304

06/09/2023 at 07:02AM

17
#28 - Iuliana Calarasanu / @ICalarasanu1990

06/09/2023 at 07:20AM

17
#29 - Caio Nunes Tristao / @CaioNTT

06/10/2023 at 02:24AM

17
#30 - Danilo J. S. Bellini 🥊🇧🇷 / @danilobellini

06/10/2023 at 05:23AM