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

284 active golfers, 504 entries

Leaderboard (lowest score wins):
17
#181 - Sami Tabet / @sfluor

02/09/2024 at 02:59PM

17
#182 - Steve Shi / @steveshi7

02/10/2024 at 04:10AM

17
#183 - George Angelopoulos / @gangelop

02/11/2024 at 08:00AM

17
#184 - Penbu / @penbuvt

02/16/2024 at 02:11AM

17
#185 - Ben Jervis / @benjervis

02/20/2024 at 11:14AM

17
#186 - Anaritus / @Anaritus

02/23/2024 at 12:52AM

17
#187 - RiskyDissonance / @riskydissonance

02/23/2024 at 09:35AM

17
#188 - Mike Rayner / @mikesfake

03/10/2024 at 07:56AM

17
#189 - Jinli Xiao / @jinlixiao

03/11/2024 at 09:56PM

17
#190 - alunturner / @alunturner

03/21/2024 at 12:22AM

17
#191 - Seungho Lee / @llistnr

03/25/2024 at 03:19AM

17
#192 - vimster12312 / @vimster12394846

03/27/2024 at 09:41PM

17
#193 - Rodney Visser / @_Radnus

03/28/2024 at 02:41AM

17
#194 - Andrey Rakhubovsky / @omnster

03/29/2024 at 09:42AM

17
#195 - Aristotelis Dossas / @teldosas

03/29/2024 at 05:51PM

17
#196 - nightgather / @nightgather

03/31/2024 at 01:43AM

17
#197 - Aly Thobani / @alythobani

04/03/2024 at 11:28PM

17
#198 - armaninux / @armaninux

04/04/2024 at 07:28PM

17
#199 - Peppa Pig / @PeppaPi95550250

04/06/2024 at 02:27PM

17
#200 - Kanmuruuruu / @Kanmuruuruu

04/07/2024 at 04:38PM

17
#201 - jason songhurst / @spirozh

04/09/2024 at 04:18PM

17
#202 - gpfl0712 / @gpfl0712

04/13/2024 at 05:37PM

17
#203 - Lennart / @lennartack

04/15/2024 at 02:08PM

17
#204 - Tsoa2023 / @Tsoa2023

04/17/2024 at 06:32PM

17
#205 - xiaoao1024 / @xiaoao1024

04/28/2024 at 06:32AM

17
#206 - luke37842 / @luke37842

05/14/2024 at 01:11PM

17
#207 - Thermospore / @Thermospore

05/20/2024 at 01:28PM

17
#208 - Paul McDowell / @etothepi16

05/21/2024 at 07:30PM

17
#209 - Don'tBeAlarmed / @DontBeAlarmed

05/31/2024 at 08:15PM

17
#210 - Zigmas Bitinas / @samgiz

05/31/2024 at 11:09PM