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

453 active golfers, 1825 entries

Leaderboard (lowest score wins):
23
#121 - Roger Stoltz / @rogsto1

02/26/2019 at 04:52PM

23
#122 - BaffaloP 🐃🎨 / @bbaffalopp

02/26/2019 at 08:20PM

23
#123 - T A / @SirAviles

02/26/2019 at 09:31PM

23
#124 - noisevoid / @noisevoid

02/28/2019 at 02:23AM

23
#125 - Ivo Tripunovic / @ivo_tripunovic

02/28/2019 at 04:14PM

23
#126 - james_bunch / @james_bunch

03/02/2019 at 06:45AM

23
#127 - severij / @severij_

03/02/2019 at 12:09PM

23
#128 - Rasmus Bergström / @JRasmusBm

03/04/2019 at 02:06PM

23
#129 - zh0ng / @zh00ng

03/05/2019 at 12:52PM

23
#130 - Victor Ramirez / @virako

03/06/2019 at 11:44PM

23
#131 - Greg Anders / @gregory_anders

03/07/2019 at 06:41PM

23
#132 - platypusDancing / @platypusDancing

03/08/2019 at 05:34AM

23
#133 - dungeon_master / @dungeon27205778

03/08/2019 at 02:02PM

23
#134 - Kyle Tilman / @kyletilman

03/08/2019 at 08:25PM

23
#135 - Tarik IRHBOULA / @tarik12009

03/10/2019 at 06:22PM

23
#136 - John Sumner / @rjsumner

03/11/2019 at 02:25AM

23
#137 - Isaak Meier / @IsaakMeier

03/12/2019 at 02:16PM

23
#138 - Timothy Michael Fox / @Timothy_M_Fox

03/12/2019 at 06:42PM

23
#139 - Arijus / @argshook

03/13/2019 at 12:39PM

23
#140 - Andrius Bentkus / @andriusbentkus

03/13/2019 at 12:50PM

23
#141 - Nick Barth / @NickBarth

03/13/2019 at 03:40PM

23
#142 - Adam Hall / @adamhalldesigns

03/14/2019 at 07:06PM

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

03/15/2019 at 09:36PM

23
#144 - 이혁준 / @biper94

03/18/2019 at 03:04AM

23
#145 - Duke Du / @DukeDu2

03/18/2019 at 04:44AM

23
#146 - James Perry Hartman / @JauntyJPH

03/18/2019 at 04:08PM

23
#147 - Sam Kim / @samkimhis

03/18/2019 at 05:40PM

23
#148 - Mihai / @mihaicristiant

03/20/2019 at 10:01AM

23
#149 - Florian Maisonnial / @floZx

03/20/2019 at 02:49PM

23
#150 - ゴリラ / @gorilla0513

03/26/2019 at 11:40AM