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):
27
#1171 - daniao / @dan1ao

11/01/2020 at 12:43PM

27
#1172 - tehnomaag / @tehnomaag

11/04/2020 at 11:28AM

27
#1173 - Neverlandrunner / @neverlandrunner

12/05/2020 at 01:05PM

27
#1174 - Rafael B. / @rafib

12/24/2020 at 02:21PM

27
#1175 - Alex / @alexbhandariy

05/30/2023 at 08:33PM

28
#1176 - Benny / @b1299709

02/25/2019 at 10:10PM

28
#1177 - tenteke / @kuskus3

02/28/2019 at 03:10PM

28
#1178 - Chris AtLee / @chrisatlee

03/01/2019 at 05:58PM

28
#1179 - S├ębastien Lavoie / @sgdlavoie

03/03/2019 at 04:44AM

28
#1180 - Noel Danz / @programoncoffee

03/04/2019 at 08:23PM

28
#1181 - wanghbxxxx / @wanghbxxxx

03/27/2019 at 05:43AM

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

04/02/2019 at 07:12AM

28
#1183 - Nostradevran / @nostradevran

04/12/2019 at 02:08AM

28
#1184 - Yegor Myshlyaev / @YegorMy

04/15/2019 at 09:49AM

28
#1185 - Adam Rajnoha / @krasohled

04/23/2019 at 12:04PM

28
#1186 - Professor of Canine Ludology / @EthanMcQuarrie

04/23/2019 at 01:41PM

28
#1187 - yipcyj / @yipcyj

05/02/2019 at 01:19PM

28
#1188 - Markus / @dayshade_7

05/02/2019 at 03:49PM

28
#1189 - twisted fate lover / @LoverTwisted

05/08/2019 at 08:18PM

28
#1190 - edulim / @edulim2

05/15/2019 at 09:39PM

28
#1191 - nvb46c74f8ih / @nvb46c74f8ih

05/16/2019 at 01:03PM

28
#1192 - El Carpet / @elcarpet

05/30/2019 at 07:00PM

28
#1193 - Luis Copetti / @lhcopetti

05/31/2019 at 03:46PM

28
#1194 - Ari Sweedler / @Adsweed

06/07/2019 at 12:52AM

28
#1195 - Mike Clarke / @clarkema

06/07/2019 at 12:29PM

28
#1196 - Prashanth / @Prashanth157T

06/12/2019 at 03:15AM

28
#1197 - Grzegorz Andrzejowski / @AndrzejowskiG

06/13/2019 at 01:41PM

28
#1198 - Oleg Andriyanov / @OAndriyanov

06/26/2019 at 04:05PM

28
#1199 - Marcus Loo / @MarcusLoo1

07/03/2019 at 03:15PM

28
#1200 - TestaPerro / @TestaPerro

07/12/2019 at 10:51PM