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
#121 - sis / @OPhboUDXyJXMoVX

09/06/2023 at 01:13PM

17
#122 - A White Dwarf / @AWhiteDwarf1

09/08/2023 at 07:57PM

17
#123 - Lazarescu Andrei / @lazandrei19

09/15/2023 at 11:30AM

17
#124 - Alex Pepper / @pepper18608

09/15/2023 at 02:27PM

17
#125 - ilyas / @Ahaaah2071

09/18/2023 at 09:36PM

17
#126 - Андрей Куренков (Arey) / @Arey_65536

09/19/2023 at 07:51PM

17
#127 - Monkey Boy / @monkey29089

09/21/2023 at 02:41PM

17
#128 - Paul Molloy / @paulsmolloy

10/05/2023 at 08:43PM

17
#129 - かぼす / @umesawanokabosu

10/06/2023 at 11:03AM

17
#130 - Philipp Schilk / @philipp_schilk

10/08/2023 at 02:56PM

17
#131 - 으앙 / @meri2727

10/13/2023 at 03:13AM

17
#132 - Seok Hwan Kim / @gworldkim

10/15/2023 at 06:32AM

17
#133 - scpchicken / @scpchick

10/18/2023 at 06:32AM

17
#134 - Luoyb / @Luoyb

10/19/2023 at 01:05AM

17
#135 - Marco Meinardi / @Kee__no

10/19/2023 at 08:58AM

17
#136 - Alex Pepper / @AlexPepper1457

10/20/2023 at 03:52PM

17
#137 - Yassine Ibr / @yassineibr2001

10/22/2023 at 04:22PM

17
#138 - tien / @tien40766111

10/23/2023 at 01:00PM

17
#139 - Matthew Finlayson / @mattf1n

10/23/2023 at 11:06PM

17
#140 - NDavis / @D1727374757

10/24/2023 at 08:28PM

17
#141 - Vimgolf User / @VimgolfU

10/25/2023 at 07:30AM

17
#142 - Maurice Schmicking / @m_schmicking

10/31/2023 at 06:43PM

17
#143 - Andrew Morris / @AndrewJZ

11/01/2023 at 06:36AM

17
#144 - Sergej Karavajnij / @basyanya_sk

11/01/2023 at 07:31PM

17
#145 - Roman Malyshkov / @Rmkek

11/07/2023 at 10:43AM

17
#146 - Jakob Weickmann / @jweickm

11/09/2023 at 03:20PM

17
#147 - FilipRazek / @FilipRazek

11/11/2023 at 08:58AM

17
#148 - anakojm / @anakojm

11/12/2023 at 01:35PM

17
#149 - Henrique Malheiro / @rike09

11/15/2023 at 03:18PM

17
#150 - Blake Wingard / @Bats6789

11/16/2023 at 03:53PM