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):
27
#1111 - Corey Alexander / @coreyja_dev

06/27/2019 at 02:51AM

27
#1112 - andresote / @andresote

07/20/2019 at 10:13PM

27
#1113 - Ewan Carr / @ewancarr

07/21/2019 at 12:21PM

27
#1114 - Maor Leger / @maor_leger

07/21/2019 at 07:13PM

27
#1115 - Fan Zhang / @ffanzhang

07/23/2019 at 07:43AM

27
#1116 - John / @JohnJDoe2

07/31/2019 at 10:33AM

27
#1117 - Stefan Krist / @nerdyness_sk

08/20/2019 at 11:24AM

27
#1118 - Paul Inc / @hiniol1982

08/24/2019 at 12:43PM

27
#1119 - blub / @agorilladriving

08/27/2019 at 11:02AM

27
#1120 - lxgreen / @lxgreen3

09/29/2019 at 10:22PM

27
#1121 - Jonathan Medwig / @jmedwig

10/07/2019 at 12:25PM

27
#1122 - Alexander v Trijffel / @avtnl

10/10/2019 at 10:21PM

27
#1123 - Yasky / @Yaasky

10/21/2019 at 05:39PM

27
#1124 - MasterFox / @MaestroZorro_

10/22/2019 at 02:08PM

27
#1125 - rr / @rodgeur31

10/25/2019 at 09:25PM

27
#1126 - Z. Safiy / @Safiy_Zaghbane

11/29/2019 at 11:55PM

27
#1127 - 990 / @nisibasi990

12/02/2019 at 02:48PM

27
#1128 - vim_golfer_1 / @vimgolfer12

12/03/2019 at 08:43AM

27
#1129 - King Kang / @nobagtravel

12/10/2019 at 11:54PM

27
#1130 - Dan Kilman / @dan_kilman

12/18/2019 at 03:02PM

27
#1131 - James Casey / @hanavi

12/20/2019 at 09:10PM

27
#1132 - Steven / @Hallzy_18

12/21/2019 at 06:24PM

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

12/26/2019 at 08:16AM

27
#1134 - Wenbo / @nuxping1

12/28/2019 at 06:42PM

27
#1135 - Dmitry Link / @l1nkthon

01/23/2020 at 02:02AM

27
#1136 - Jordy Koppen / @jordy_koppen

01/25/2020 at 09:08PM

27
#1137 - John Smith / @JohnSmith448816

01/25/2020 at 11:23PM

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

01/31/2020 at 02:00PM

27
#1139 - Harald Pettersson / @HaraldPett

02/05/2020 at 03:37PM

27
#1140 - Noah / @NoahRosenzweig

02/12/2020 at 11:03PM