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

1228 active golfers, 5148 entries

Leaderboard (lowest score wins):
27
#751 - 990 / @nisibasi990

12/02/2019 at 02:48PM

27
#752 - vim_golfer_1 / @vimgolfer12

12/03/2019 at 08:43AM

27
#753 - King Kang / @nobagtravel

12/10/2019 at 11:54PM

27
#754 - Dan Kilman / @dan_kilman

12/18/2019 at 03:02PM

27
#755 - James Casey / @hanavi

12/20/2019 at 09:10PM

27
#756 - Steven / @Hallzy_18

12/21/2019 at 06:24PM

27
#757 - 鏡崎ましろ / @KagamisakiMsr

12/26/2019 at 08:16AM

27
#758 - Wenbo / @nuxping1

12/28/2019 at 06:42PM

27
#759 - Dmitry Link / @l1nkthon

01/23/2020 at 02:02AM

27
#760 - Jordy Koppen / @jordy_koppen

01/25/2020 at 09:08PM

27
#761 - John Smith / @JohnSmith448816

01/25/2020 at 11:23PM

27
#762 - Daniel Amkær Sørensen / @AmkRensen

01/31/2020 at 02:00PM

27
#763 - Harald Pettersson / @HaraldPett

02/05/2020 at 03:37PM

27
#764 - Noah / @NoahRosenzweig

02/12/2020 at 11:03PM

28
#765 - Benny / @b1299709

02/25/2019 at 10:10PM

28
#766 - tenteke / @kuskus3

02/28/2019 at 03:10PM

28
#767 - Chris AtLee / @chrisatlee

03/01/2019 at 05:58PM

28
#768 - Sébastien Lavoie / @sgdlavoie

03/03/2019 at 04:44AM

28
#769 - Noel Danz / @programoncoffee

03/04/2019 at 08:23PM

28
#770 - wanghbxxxx / @wanghbxxxx

03/27/2019 at 05:43AM

28
#771 - Tyler k the science guy / @tyler_karpe

04/02/2019 at 07:12AM

28
#772 - Nostradevran / @nostradevran

04/12/2019 at 02:08AM

28
#773 - Yegor Myshlyaev / @YegorMy

04/15/2019 at 09:49AM

28
#774 - Adam Rajnoha / @krasohled

04/23/2019 at 12:04PM

28
#775 - Apex Predatoe / @EthanMcQuarrie

04/23/2019 at 01:41PM

28
#776 - Graffiti.Lab / @Graffiti2U

04/28/2019 at 02:46PM

28
#777 - yipcyj / @yipcyj

05/02/2019 at 01:19PM

28
#778 - dayshade / @dayshade_7

05/02/2019 at 03:49PM

28
#779 - twisted fate lover / @LoverTwisted

05/08/2019 at 08:18PM

28
#780 - edulim / @edulim2

05/15/2019 at 09:39PM