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 178 remaining solutions by signing in and submitting your own entry
#179 Alex Loftus / @Noak3 - Score: 128 - 03/22/19 @ 13:05
i# <Esc>0$a #<Esc>yypRVhjkjhh<Esc><Esc>hhhhhhVR##############################<Esc>kO##############################<Esc>jFi;rwlRas<Esc>i <BS><Right> <Esc>k$a#j<Esc>xjja#<Esc>:wq<CR>

0 comments


Created by: @TitouanT_

179 active golfers, 629 entries

Leaderboard (lowest score wins):
24
#91 - 黒澤亮二 / @rjkuro

03/24/2019 at 01:49PM

25
#92 - mnx / @mnxx

02/27/2019 at 04:02PM

25
#93 - Cameron Fowler / @camfowler

03/19/2019 at 02:45AM

26
#94 - Jacob Degeling / @JacobDegeling

02/27/2019 at 09:07AM

26
#95 - Carsano / @DamienFbn

02/28/2019 at 01:05PM

26
#96 - Øystein Walle / @oysteinwalle

02/28/2019 at 01:28PM

26
#97 - TimMcGuire / @mcguire

02/28/2019 at 08:11PM

26
#98 - Halle Knast / @halleknast

03/11/2019 at 05:10PM

26
#99 - Tim Varley / @varleti

03/11/2019 at 10:45PM

26
#100 - Héctor M. Sosa / @Kerait

03/16/2019 at 09:36AM

26
#101 - ui / @ui61065627

03/16/2019 at 09:51PM

27
#102 - Mauricio Ariza / @_hell_spawn

02/25/2019 at 10:22PM

27
#103 - eidolon / @eid_lon

02/27/2019 at 10:49PM

27
#104 - BlackCap / @BlackCapCoder

02/28/2019 at 06:16PM

27
#105 - Oddwel / @Oddwel

03/01/2019 at 01:03PM

27
#106 - adir ohayon / @AdirKip

03/02/2019 at 01:26PM

27
#107 - vince / @vincentvangott

03/02/2019 at 11:01PM

27
#108 - fucus / @fishlovebanana

03/04/2019 at 09:28AM

27
#109 - Alexander Popov / @Alexand01782341

03/04/2019 at 03:01PM

27
#110 - Simon Rycroft / @sirycroftmusic

03/08/2019 at 04:22PM

27
#111 - Patrick Lavin / @LavinComputes

03/12/2019 at 10:13PM

27
#112 - Lambert Green / @Lambert_Green

03/19/2019 at 06:22PM

28
#113 - Benny / @b1299709

02/25/2019 at 10:10PM

28
#114 - tenteke / @kuskus3

02/28/2019 at 03:10PM

28
#115 - Chris AtLee / @chrisatlee

03/01/2019 at 05:58PM

28
#116 - Sébastien Lavoie / @sgdlavoie

03/03/2019 at 04:44AM

28
#117 - Noel Danz / @programoncoffee

03/04/2019 at 08:23PM

29
#118 - algebraic-geometric / @algebraicgeome1

02/25/2019 at 08:08PM

29
#119 - Miki Tebeka / @tebeka

02/26/2019 at 04:50AM

29
#120 - Timothy Bryan / @tim_bryan

02/27/2019 at 10:27AM