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

301 active golfers, 540 entries

Leaderboard (lowest score wins):
17
#91 - e1mnos / @e1mnos

08/07/2023 at 05:09PM

17
#92 - Tobias Ho / @ho_tobias11007

08/08/2023 at 04:27PM

17
#93 - Selmir Aljic / @selmir_aljic

08/08/2023 at 08:02PM

17
#94 - omer vishlitzky / @OVishlitzky

08/09/2023 at 08:58PM

17
#95 - r4d1um / @r4d1um

08/10/2023 at 08:46PM

17
#96 - v punch / @vpunch531192

08/11/2023 at 09:39AM

17
#97 - Tim Sabsch / @tsabsch

08/11/2023 at 02:08PM

17
#98 - Richard Veneracion / @rveneracion

08/12/2023 at 02:47PM

17
#99 - Sepehr / @Sepehration

08/12/2023 at 04:12PM

17
#100 - RezmeD / @rezmed0

08/13/2023 at 08:49AM

17
#101 - moh ayaya / @AyayaMoh

08/15/2023 at 01:42PM

17
#102 - Milan Blažek / @Somin13

08/17/2023 at 06:07PM

17
#103 - Ayman / @RecommenderTest

08/21/2023 at 05:15AM

17
#104 - Diogo Friggo / @diogofriggobr

08/21/2023 at 01:35PM

17
#105 - uima / @luck07051

08/21/2023 at 02:06PM

17
#106 - Petter Dalen / @PetterDale51975

08/23/2023 at 02:37PM

17
#107 - Gabriel Reed / @gabetrotro

08/25/2023 at 06:18AM

17
#108 - Josh Pius / @JoshPius98

08/26/2023 at 11:43AM

17
#109 - Teh Shin Yin / @teh_yin

08/28/2023 at 06:01AM

17
#110 - 李建宏 / @xx19971016

08/28/2023 at 08:30AM

17
#111 - xiang / @xiang56002997

08/28/2023 at 11:35PM

17
#112 - Arūnas Smaliukas / @ArunasSmaliukas

08/29/2023 at 07:33AM

17
#113 - kongreif / @kongreifamk

08/29/2023 at 02:38PM

17
#114 - Victor Phan / @Victor_Phan

08/31/2023 at 01:14AM

17
#115 - Pretend it's Beef / @EthanMcQuarrie

09/01/2023 at 04:27AM

17
#116 - John Xu / @xzzhiao

09/01/2023 at 06:18AM

17
#117 - Pablo Cárdenas / @pablo_cardenasb

09/01/2023 at 11:05PM

17
#118 - Daniel Apt / @DanielApt

09/02/2023 at 09:23AM

17
#119 - Justin Llanos / @llanosj427

09/02/2023 at 07:21PM

17
#120 - Andrew Pritchard / @pilotInPyjamas

09/05/2023 at 11:28PM