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

1870 active golfers, 7848 entries

Leaderboard (lowest score wins):
36
#1651 - Dane / @studdugie

07/27/2020 at 07:11PM

36
#1652 - notadevCollins / @NotadevC

08/10/2020 at 07:10PM

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

08/24/2020 at 03:53PM

36
#1654 - mevmev / @mevmev8

09/13/2020 at 02:31PM

36
#1655 - Christopher Oosthuizen / @ChristopherOos8

11/03/2020 at 05:50PM

36
#1656 - Oscar Bailey / @oscarb_xyz

12/16/2020 at 12:45PM

36
#1657 - Rory Smith / @alan0buchanan

09/13/2021 at 04:59PM

37
#1658 - Tom Szyszko / @DaPolishMafia01

03/15/2019 at 07:26PM

37
#1659 - Alex / @thekyz

04/17/2019 at 03:22PM

37
#1660 - manhquan / @manhquan110

05/08/2019 at 03:58PM

37
#1661 - tllilleh / @tllilleh

05/14/2019 at 08:56PM

37
#1662 - ./yamada / @yamadad_

06/19/2019 at 05:21AM

37
#1663 - Robert Buckley / @rbuckley30

08/23/2019 at 08:51PM

37
#1664 - John Grove / @grovejt

12/15/2019 at 02:49PM

37
#1665 - Tzero Ocne / @TzeroOcne

05/08/2020 at 10:44AM

37
#1666 - Codebucket / @Codebucket_

05/15/2020 at 01:18PM

37
#1667 - vimgolfer98746521 / @vimgolfer987461

09/06/2020 at 10:16AM

37
#1668 - Hossein Yousefi 💙 / @u_hossein

10/20/2020 at 08:40PM

37
#1669 - lesnikow / @lesnikow1

12/17/2020 at 04:55AM

37
#1670 - Dave Millican / @dave_millican

01/19/2021 at 08:13AM

38
#1671 - Thomas Surlykke / @THSurlykke

03/08/2019 at 10:19AM

38
#1672 - venkatakrishnan / @venkatk_

04/12/2019 at 05:53AM

38
#1673 - William Kennedy / @_williamkennedy

09/24/2019 at 01:41PM

38
#1674 - Disrupting the useless / @wowsuchcode

10/20/2019 at 03:22PM

38
#1675 - ENSORIZATION / @ensorization

11/01/2019 at 09:56PM

38
#1676 - redwood / @redwood80235716

01/05/2020 at 01:30AM

38
#1677 - Bernhard Schuller / @No1NeedsMoreTha

02/25/2020 at 11:54AM

38
#1678 - Sai Hemanth / @saihemanth9019

04/21/2020 at 06:53AM

38
#1679 - Yavor Nenov / @YavorNe

06/21/2020 at 09:42PM

38
#1680 - agm401 / @agm401

07/12/2020 at 03:21AM