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

1173 active golfers, 4898 entries

Leaderboard (lowest score wins):
26
#661 - Eliseo / @Eliseohh_A

11/09/2019 at 07:00AM

26
#662 - Steve Racanovic / @steve_racanovic

12/17/2019 at 10:00PM

26
#663 - l4cr0ss / @l4cr0ss

12/19/2019 at 08:16PM

26
#664 - John Woolley / @megdatronica

12/20/2019 at 11:24AM

26
#665 - Marian Minar (jr.) / @majamin

12/23/2019 at 05:46AM

26
#666 - Cody Heimberger / @certifiedloud

01/09/2020 at 09:33PM

26
#667 - Jon Crowe / @joncrowe

01/28/2020 at 09:07AM

27
#668 - Mauricio Ariza / @_hell_spawn

02/25/2019 at 10:22PM

27
#669 - əidolon / @eid_lon

02/27/2019 at 10:49PM

27
#670 - BlackCap / @BlackCapCoder

02/28/2019 at 06:16PM

27
#671 - Oddwel / @Oddwel

03/01/2019 at 01:03PM

27
#672 - adir ohayon / @AdirKip

03/02/2019 at 01:26PM

27
#673 - vince / @vincentvangott

03/02/2019 at 11:01PM

27
#674 - Alexander Popov / @Alexand01782341

03/04/2019 at 03:01PM

27
#675 - Simon Rycroft / @sirycroftmusic

03/08/2019 at 04:22PM

27
#676 - Patrick Lavin / @LavinComputes

03/12/2019 at 10:13PM

27
#677 - Lambert Green / @Lambert_Green

03/19/2019 at 06:22PM

27
#678 - Shahin Mohammad Sali / @shaahiinms

03/25/2019 at 08:40PM

27
#679 - Ivan Krukov / @i_krukov

04/04/2019 at 11:14PM

27
#680 - Banner B. Schafer / @BannerBSchafer

04/08/2019 at 03:13AM

27
#681 - Andrei Gasparovici / @agasparovici

04/09/2019 at 06:42AM

27
#682 - wort / @rtiago98

04/10/2019 at 12:14PM

27
#683 - Ben Allan / @hellobenallan

04/10/2019 at 01:01PM

27
#684 - PCS Solutions / @PeteSolutions

04/18/2019 at 11:18AM

27
#685 - Keven / @czzhengkw

04/25/2019 at 01:37PM

27
#686 - Alexánder Caba / @CabaAlexander

05/02/2019 at 05:34PM

27
#687 - vimgolfer24271 / @vimgolfer24271

05/10/2019 at 11:45AM

27
#688 - Timothée Gauthier / @zmf_tim

05/11/2019 at 03:44PM

27
#689 - jibai Gao / @jibaiGao

05/18/2019 at 09:12AM

27
#690 - Nick Anishenko / @NAnishenko

05/22/2019 at 04:36AM