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

454 active golfers, 1827 entries

Leaderboard (lowest score wins):
27
#271 - Ivan Krukov / @i_krukov

04/04/2019 at 11:14PM

27
#272 - Banner B. Schafer / @BannerBSchafer

04/08/2019 at 03:13AM

27
#273 - Andrei Gasparovici / @agasparovici

04/09/2019 at 06:42AM

27
#274 - wort / @rtiago98

04/10/2019 at 12:14PM

27
#275 - Ben Allan / @hellobenallan

04/10/2019 at 01:01PM

27
#276 - PCS Solutions / @PeteSolutions

04/18/2019 at 11:18AM

27
#277 - Keven / @czzhengkw

04/25/2019 at 01:37PM

27
#278 - Alexánder Caba / @CabaAlexander

05/02/2019 at 05:34PM

27
#279 - vimgolfer24271 / @vimgolfer24271

05/10/2019 at 11:45AM

27
#280 - Timothée Gauthier / @zmf_tim

05/11/2019 at 03:44PM

27
#281 - jibai Gao / @jibaiGao

05/18/2019 at 09:12AM

28
#282 - Benny / @b1299709

02/25/2019 at 10:10PM

28
#283 - tenteke / @kuskus3

02/28/2019 at 03:10PM

28
#284 - Chris AtLee / @chrisatlee

03/01/2019 at 05:58PM

28
#285 - Sébastien Lavoie / @sgdlavoie

03/03/2019 at 04:44AM

28
#286 - Noel Danz / @programoncoffee

03/04/2019 at 08:23PM

28
#287 - wanghbxxxx / @wanghbxxxx

03/27/2019 at 05:43AM

28
#288 - Paul Inc / @hiniol1982

03/30/2019 at 07:30PM

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

04/02/2019 at 07:12AM

28
#290 - Nostradevran / @nostradevran

04/12/2019 at 02:08AM

28
#291 - Yegor Myshlyaev / @YegorMy

04/15/2019 at 09:49AM

28
#292 - Артур Кашаев / @KashaevArthur

04/17/2019 at 04:09PM

28
#293 - Adam Rajnoha / @krasohled

04/23/2019 at 12:04PM

28
#294 - Apex Predatoe / @EthanMcQuarrie

04/23/2019 at 01:41PM

28
#295 - Graffiti.Lab / @Graffiti2U

04/28/2019 at 02:46PM

28
#296 - yipcyj / @yipcyj

05/02/2019 at 01:19PM

28
#297 - dayshade / @dayshade_7

05/02/2019 at 03:49PM

28
#298 - twisted fate lover / @LoverTwisted

05/08/2019 at 08:18PM

28
#299 - edulim / @edulim2

05/15/2019 at 09:39PM

28
#300 - Denton Phosavanh / @DPhosavanh

05/16/2019 at 01:03PM