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

276 active golfers, 491 entries

Leaderboard (lowest score wins):
17
#151 - Leon Katsnelson / @leonkatsnelson

11/21/2023 at 03:38AM

17
#152 - MonkieeBoi / @MonkieeBoi

11/22/2023 at 05:38AM

17
#153 - Benjamin Daniel Suarez / @benjaminsuarez

11/22/2023 at 10:54PM

17
#154 - Ludovic Schwartz / @ludovicschwartz

11/24/2023 at 01:30PM

17
#155 - 185264646 / @185264646

11/26/2023 at 11:35AM

17
#156 - 悟史 / @A1OBJTxN5fTg5EJ

11/29/2023 at 04:05PM

17
#157 - lethalNeutrino / @lethalNeutrino

12/01/2023 at 05:40AM

17
#158 - Frédéric Heulin / @talineo

12/04/2023 at 08:49PM

17
#159 - Remus Dalrymple / @bornintheflames

12/08/2023 at 06:59AM

17
#160 - Adrián Fidalgo-Díaz / @adrianFD22

12/14/2023 at 07:06PM

17
#161 - Joachim Wedin / @joachimwedin

12/18/2023 at 09:56PM

17
#162 - Matthieu Talbot / @MartyLake

12/20/2023 at 07:20PM

17
#163 - hatena / @rotwm

12/24/2023 at 06:21PM

17
#164 - Daniel Niemczyk / @Adentalis

12/25/2023 at 07:00PM

17
#165 - MikkelDitlevOlsen1 / @MikkelDitlevOlsen1

12/28/2023 at 04:55PM

17
#166 - Markus Ditlev Olsen / @markusOlsen1

12/28/2023 at 05:20PM

17
#167 - Jasper v. B. / @jazzpi

12/30/2023 at 03:25PM

17
#168 - João Britto / @joaobrittoneto

01/04/2024 at 09:18AM

17
#169 - egitto / @egitto

01/04/2024 at 06:53PM

17
#170 - BlockLune / @BlockLune

01/08/2024 at 05:00AM

17
#171 - Matt Zhang / @MattUnderscoreZhang

01/08/2024 at 02:03PM

17
#172 - Justin Jung / @bustinbung

01/09/2024 at 09:50PM

17
#173 - Arey125 / @Arey125

01/10/2024 at 02:20PM

17
#174 - Tom Anderson / @andogq

01/13/2024 at 03:56AM

17
#175 - AxialSymmetry / @AxialSymmetry

01/14/2024 at 02:46AM

17
#176 - Shywizz / @Shywizz

01/14/2024 at 03:11PM

17
#177 - Cyrus Kirk / @cyrusjkirk

01/19/2024 at 02:21PM

17
#178 - shikitanrei / @shikitanrei

01/28/2024 at 01:22AM

17
#179 - romache8 / @romache8

02/01/2024 at 08:12AM

17
#180 - jonas-grobe / @jonas-grobe

02/05/2024 at 04:04PM