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 5c742a5a50bdf70006d43280

Box it

Create a box around a line.

Start file
My dream is to be in a box
End file
###############################
# My dream was to be in a box #
###############################

View Diff

1c1,3
< My dream is to be in a box
---
> ###############################
> # My dream was to be in a box #
> ###############################

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 1835 remaining solutions by signing in and submitting your own entry
#1836 Daniel Snitkovskiy / @DSnitkovskiy - Score: 198 - 04/07/19 @ 06:27
i<CR>jk<BS><BS><Esc>:source .vimrc<CR>$i<Right><CR>#jkbwyiwpppppp0ywppp$XXbbBBbbbbbbppppp0ywpppp$###bbjkjk<Esc><CR>nijkbbbbbbbbi# jkkjk$i##jk/my<CR><Esc>nn<CR><CR>jk$ijXjkxXjkki###jXjkXxkji<Right> #<CR><BS>jkhllw$i####jkjbbbbbbbbxiwajkbbbbbb$i#jkjji#jk:x<CR>

0 comments


Created by: @TitouanT_

1836 active golfers, 7682 entries

Leaderboard (lowest score wins):
21
#421 - Duncan / @Duncan31503119

01/06/2021 at 09:15AM

21
#422 - A A A / @37fatos

01/08/2021 at 06:34PM

21
#423 - 김범준 / @kmbmjn

01/13/2021 at 12:56PM

21
#424 - Marion Oldman / @ThatBigCock

01/16/2021 at 07:47PM

21
#425 - BumfuzzleGames / @BumfuzzleGames

01/18/2021 at 08:57AM

21
#426 - Andreas Siegrist / @andreaszwei

01/18/2021 at 11:10AM

21
#427 - fray bauhaus / @BauhausFray

01/18/2021 at 11:36AM

21
#428 - Horst / @Horst91706815

01/19/2021 at 05:02PM

21
#429 - tylertucker202 / @tylertucker202

01/19/2021 at 11:55PM

21
#430 - 蔡徐坤真是爱吃屎 / @Hashub7

01/20/2021 at 09:51AM

21
#431 - Richard Leigh Davies / @RichardDaviesAI

01/23/2021 at 08:01PM

21
#432 - fkubota 🦉 / @the_phi_is_cast

01/25/2021 at 12:45PM

21
#433 - nedlog / @nedlog18

05/11/2021 at 06:43AM

21
#434 - m397 / @m39752809546

05/12/2021 at 11:20AM

21
#435 - Georg Bökman / @BokmanGeorg

07/06/2021 at 10:16AM

21
#436 - Frank Malone / @FrankMa00268686

07/19/2021 at 01:48PM

21
#437 - logtxt / @logtxt1

07/21/2021 at 02:10PM

21
#438 - lydxn / @lydxn1

07/29/2021 at 03:33AM

21
#439 - Jean George / @JeanGeo20504212

09/04/2021 at 01:44PM

21
#440 - yancy / @yancy_dong

09/18/2021 at 12:53AM

21
#441 - Tanzeel Kazi / @tanzeelkazi

10/13/2021 at 09:45PM

21
#442 - Flimsy Giraffe / @flimsy_giraffe

11/27/2021 at 07:14PM

21
#443 - Youssef Magdy / @youssef_magdy29

04/30/2022 at 10:03PM

21
#444 - dorianm / @dorianm

05/09/2022 at 03:50AM

21
#445 - russellzhaomao / @russellzhaomao

05/28/2022 at 10:11AM

21
#446 - Alex / @AlexanderHeatl2

07/06/2022 at 10:59PM

22
#447 - Tinko Minko / @tandikula

02/26/2019 at 06:21AM

22
#448 - hn9u / @hn9u

02/27/2019 at 09:27AM

22
#449 - Valacar / @valacar

03/04/2019 at 01:55AM

22
#450 - maq / @maq41476369

03/04/2019 at 02:50PM