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):
23
#61 - platypusDancing / @platypusDancing

03/08/2019 at 05:34AM

23
#62 - dungeon_master / @dungeon27205778

03/08/2019 at 02:02PM

23
#63 - Kyle Tilman / @kyletilman

03/08/2019 at 08:25PM

23
#64 - Tarik IRHBOULA / @tarik12009

03/10/2019 at 06:22PM

23
#65 - John Sumner / @rjsumner

03/11/2019 at 02:25AM

23
#66 - Isaak Meier / @IsaakMeier

03/12/2019 at 02:16PM

23
#67 - Timothy Michael Fox / @Timothy_M_Fox

03/12/2019 at 06:42PM

23
#68 - Arijus / @argshook

03/13/2019 at 12:39PM

23
#69 - Andrius Bentkus / @andriusbentkus

03/13/2019 at 12:50PM

23
#70 - Nick Barth / @NickBarth

03/13/2019 at 03:40PM

23
#71 - Adam Hall / @adamhalldesigns

03/14/2019 at 07:06PM

23
#72 - ———đίxίє—flαтlίиє——— / @_dixie_flatline

03/15/2019 at 09:36PM

23
#73 - 이혁준 / @biper94

03/18/2019 at 03:04AM

23
#74 - Duke Du / @DukeDu2

03/18/2019 at 04:44AM

23
#75 - James Perry Hartman / @JauntyJPH

03/18/2019 at 04:08PM

23
#76 - Sam Kim / @samkimhis

03/18/2019 at 05:40PM

23
#77 - Mihai / @mihaicristiant

03/20/2019 at 10:01AM

23
#78 - Florian Maisonnial / @floZx

03/20/2019 at 02:49PM

24
#79 - tPenguinLTG / @tpenguinltg

02/26/2019 at 02:38AM

24
#80 - Jiho Noh / @JihoNoh

02/28/2019 at 08:52PM

24
#81 - Kevin Ullmann / @kevosauce

02/28/2019 at 10:29PM

24
#82 - Amado Antonini / @AmadoAntonini

03/04/2019 at 02:45PM

24
#83 - Saphire Lattice / @SaphireLattice

03/06/2019 at 04:53AM

24
#84 - dungeon_master / @dungeon60120491

03/08/2019 at 10:36AM

24
#85 - Anthony Catterwell / @ACatterwell

03/09/2019 at 02:31AM

24
#86 - zenwalker / @zenwalker93

03/09/2019 at 01:50PM

24
#87 - Evyk / @Mr_Evyk

03/09/2019 at 10:31PM

24
#88 - Jens / @Jens18925425

03/11/2019 at 04:02PM

24
#89 - crazyminecuber / @crazyminecuber

03/16/2019 at 03:57PM

24
#90 - Galvatron / @mattjg908

03/16/2019 at 11:00PM