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 1847 remaining solutions by signing in and submitting your own entry
#1848 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_

1848 active golfers, 7757 entries

Leaderboard (lowest score wins):
24
#931 - s3cy / @s3cyxx

08/23/2020 at 11:54AM

24
#932 - Marcio M Pereira / @iviarcio

08/23/2020 at 09:05PM

24
#933 - yhgolf / @yhgolf1

09/05/2020 at 12:29PM

24
#934 - Václav Pernička / @VaclavPernicka

09/05/2020 at 06:55PM

24
#935 - Sébastien Roccaserra / @sroccaserra

09/24/2020 at 07:40PM

24
#936 - Алексей Ковалев / @FrostMephi

09/24/2020 at 08:58PM

24
#937 - Fransis / @fransisnk

09/25/2020 at 06:42PM

24
#938 - SteamHooks / @SteamHooks

09/28/2020 at 09:54PM

24
#939 - BryanYan / @BryanGoesPlaces

09/29/2020 at 03:31PM

24
#940 - teu cu / @j4derr

10/02/2020 at 06:04PM

24
#941 - Gleb Zaharov / @maerfix

10/11/2020 at 06:48PM

24
#942 - Mark / @markbaraban

10/13/2020 at 08:53PM

24
#943 - Peter Demin / @peterdemin

10/13/2020 at 10:31PM

24
#944 - Carlos / @Karu75414928

10/15/2020 at 06:56PM

24
#945 - hhh / @hhh78116797

10/17/2020 at 03:57PM

24
#946 - Nathan Hartman / @hnathan918

10/20/2020 at 11:19PM

24
#947 - Thanawat Yodnil / @littleboycoding

10/24/2020 at 05:54PM

24
#948 - Josh Swift / @Swiftyfish14

10/28/2020 at 12:56PM

24
#949 - Demian Martinez / @demianuco

11/01/2020 at 10:57PM

24
#950 - Jakub / @vr0m

11/06/2020 at 10:22AM

24
#951 - MrRubiksSC / @RubiksSc

11/25/2020 at 02:41AM

24
#952 - Nikhil / @nikhilcsb

12/08/2020 at 11:08PM

24
#953 - Willy / @Willy92273889

12/09/2020 at 07:10AM

24
#954 - Jon Powers / @JonKPowers

12/14/2020 at 01:04AM

24
#955 - Luke Abbott / @lukebyear

12/26/2020 at 03:36AM

24
#956 - Aioriya / @AioriyaDonk

01/23/2021 at 08:21PM

24
#957 - Alessandro Cantini / @aecant

09/28/2021 at 04:51PM

24
#958 - vladanscy / @vladanscy

02/09/2023 at 09:25AM

25
#959 - mnx / @mnxx

02/27/2019 at 04:02PM

25
#960 - Cameron Fowler / @camfowler

03/19/2019 at 02:45AM