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

1879 active golfers, 7911 entries

Leaderboard (lowest score wins):
36
#1651 - Jonathan Pence / @Jonathan_Pence

12/25/2019 at 04:07PM

36
#1652 - None / @sh1chuang

12/30/2019 at 09:49AM

36
#1653 - Shekh Ataul / @ataul443

03/08/2020 at 06:50PM

36
#1654 - Peter Tran / @Fulton_Jewelry

03/21/2020 at 12:17AM

36
#1655 - Pulin Agrawal / @pulinagrawal

05/14/2020 at 02:32AM

36
#1656 - jackmark / @jackmar14540583

07/10/2020 at 05:29AM

36
#1657 - drGsus / @drGsus

07/24/2020 at 05:14PM

36
#1658 - Dane / @studdugie

07/27/2020 at 07:11PM

36
#1659 - notadevCollins / @NotadevC

08/10/2020 at 07:10PM

36
#1660 - Oben Özgür / @Obenozgur

08/24/2020 at 03:53PM

36
#1661 - mevmev / @mevmev8

09/13/2020 at 02:31PM

36
#1662 - Christopher Oosthuizen / @ChristopherOos8

11/03/2020 at 05:50PM

36
#1663 - Oscar Bailey / @oscarb_xyz

12/16/2020 at 12:45PM

36
#1664 - Rory Smith / @alan0buchanan

09/13/2021 at 04:59PM

37
#1665 - Tom Szyszko / @DaPolishMafia01

03/15/2019 at 07:26PM

37
#1666 - Alex / @thekyz

04/17/2019 at 03:22PM

37
#1667 - manhquan / @manhquan110

05/08/2019 at 03:58PM

37
#1668 - tllilleh / @tllilleh

05/14/2019 at 08:56PM

37
#1669 - ./yamada / @yamadad_

06/19/2019 at 05:21AM

37
#1670 - Robert Buckley / @rbuckley30

08/23/2019 at 08:51PM

37
#1671 - John Grove / @grovejt

12/15/2019 at 02:49PM

37
#1672 - Tzero Ocne / @TzeroOcne

05/08/2020 at 10:44AM

37
#1673 - Codebucket / @Codebucket_

05/15/2020 at 01:18PM

37
#1674 - vimgolfer98746521 / @vimgolfer987461

09/06/2020 at 10:16AM

37
#1675 - Hossein Yousefi 💙 / @u_hossein

10/20/2020 at 08:40PM

37
#1676 - lesnikow / @lesnikow1

12/17/2020 at 04:55AM

37
#1677 - Dave Millican / @dave_millican

01/19/2021 at 08:13AM

38
#1678 - Thomas Surlykke / @THSurlykke

03/08/2019 at 10:19AM

38
#1679 - venkatakrishnan / @venkatk_

04/12/2019 at 05:53AM

38
#1680 - William Kennedy / @_williamkennedy

09/24/2019 at 01:41PM