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

454 active golfers, 1827 entries

Leaderboard (lowest score wins):
25
#241 - Cj-bc_sd.sh🐟@mltermコンパイルチャレンジ / @Cj_bc_sd

04/19/2019 at 03:02PM

25
#242 - Καράτε Μόνο / @karate_mono

05/10/2019 at 08:33AM

26
#243 - Jacob Degeling / @JacobDegeling

02/27/2019 at 09:07AM

26
#244 - Carsano / @DamienFbn

02/28/2019 at 01:05PM

26
#245 - Øystein Walle / @oysteinwalle

02/28/2019 at 01:28PM

26
#246 - Halle Knast / @halleknast

03/11/2019 at 05:10PM

26
#247 - Tim Varley / @varleti

03/11/2019 at 10:45PM

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

03/16/2019 at 09:36AM

26
#249 - psliwka / @psliwka2

03/27/2019 at 06:16PM

26
#250 - Adam Procio / @AdamProcio

03/30/2019 at 05:41PM

26
#251 - Ruslan / @zimdero

04/12/2019 at 07:40AM

26
#252 - Mort Rainey / @arch_midnight

04/14/2019 at 12:33PM

26
#253 - Laurent Atlan / @laurentatlan1

04/14/2019 at 06:59PM

26
#254 - Askhat Sakhabiev / @Sakhabiev_Ashat

04/14/2019 at 11:09PM

26
#255 - fucus / @fishlovebanana

04/15/2019 at 12:19AM

26
#256 - io / @iovis9

04/21/2019 at 07:51PM

26
#257 - Grant / @grant_7788

04/24/2019 at 12:34PM

26
#258 - Lingyu Yi / @LgxLingyu

05/08/2019 at 05:39AM

26
#259 - Mat / @matpbo

05/17/2019 at 03:32AM

27
#260 - Mauricio Ariza / @_hell_spawn

02/25/2019 at 10:22PM

27
#261 - əidolon / @eid_lon

02/27/2019 at 10:49PM

27
#262 - BlackCap / @BlackCapCoder

02/28/2019 at 06:16PM

27
#263 - Oddwel / @Oddwel

03/01/2019 at 01:03PM

27
#264 - adir ohayon / @AdirKip

03/02/2019 at 01:26PM

27
#265 - vince / @vincentvangott

03/02/2019 at 11:01PM

27
#266 - Alexander Popov / @Alexand01782341

03/04/2019 at 03:01PM

27
#267 - Simon Rycroft / @sirycroftmusic

03/08/2019 at 04:22PM

27
#268 - Patrick Lavin / @LavinComputes

03/12/2019 at 10:13PM

27
#269 - Lambert Green / @Lambert_Green

03/19/2019 at 06:22PM

27
#270 - Shahin Mohammad Sali / @shaahiinms

03/25/2019 at 08:40PM