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

862 active golfers, 3565 entries

Leaderboard (lowest score wins):
26
#481 - Petru-Armand Bancila / @petruarmand

07/08/2019 at 04:04AM

26
#482 - Ola / @Ola73745831

07/08/2019 at 08:00AM

26
#483 - Adomas Jatužis / @adomixaszvers

07/13/2019 at 03:17PM

26
#484 - Matt Vaughn / @mattttvaughn

07/28/2019 at 11:50PM

26
#485 - Matti Sairanen / @MattiSairanen

08/05/2019 at 08:21AM

26
#486 - majestic sloth / @SamLlama

08/08/2019 at 06:00AM

26
#487 - monaqa / @mo_naqa

08/20/2019 at 02:47PM

26
#488 - Charlie OConor / @charlieoconor

08/23/2019 at 07:40PM

26
#489 - José / @AngelGaldamez

08/25/2019 at 04:27AM

26
#490 - birdybirdbird / @birdybirdbird13

08/27/2019 at 01:12PM

26
#491 - ian / @ianbrault

08/29/2019 at 11:17PM

26
#492 - Gourav Chawla / @TechDeviant

08/30/2019 at 03:51AM

26
#493 - jonathangai / @jonathangai1

09/01/2019 at 09:22PM

26
#494 - Alexander L. / @Lexol4s

09/09/2019 at 04:00PM

27
#495 - Mauricio Ariza / @_hell_spawn

02/25/2019 at 10:22PM

27
#496 - əidolon / @eid_lon

02/27/2019 at 10:49PM

27
#497 - BlackCap / @BlackCapCoder

02/28/2019 at 06:16PM

27
#498 - Oddwel / @Oddwel

03/01/2019 at 01:03PM

27
#499 - adir ohayon / @AdirKip

03/02/2019 at 01:26PM

27
#500 - vince / @vincentvangott

03/02/2019 at 11:01PM

27
#501 - Alexander Popov / @Alexand01782341

03/04/2019 at 03:01PM

27
#502 - Simon Rycroft / @sirycroftmusic

03/08/2019 at 04:22PM

27
#503 - Patrick Lavin / @LavinComputes

03/12/2019 at 10:13PM

27
#504 - Lambert Green / @Lambert_Green

03/19/2019 at 06:22PM

27
#505 - Shahin Mohammad Sali / @shaahiinms

03/25/2019 at 08:40PM

27
#506 - Ivan Krukov / @i_krukov

04/04/2019 at 11:14PM

27
#507 - Banner B. Schafer / @BannerBSchafer

04/08/2019 at 03:13AM

27
#508 - Andrei Gasparovici / @agasparovici

04/09/2019 at 06:42AM

27
#509 - wort / @rtiago98

04/10/2019 at 12:14PM

27
#510 - Ben Allan / @hellobenallan

04/10/2019 at 01:01PM