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

686 active golfers, 2834 entries

Leaderboard (lowest score wins):
23
#271 - Alex Yu / @sixianyu

06/07/2019 at 06:35AM

23
#272 - summingbest / @summingbest

06/10/2019 at 03:45AM

23
#273 - Alexey Vyskubov / @avysk

06/13/2019 at 11:39AM

23
#274 - couaber / @couaber

06/20/2019 at 04:45PM

23
#275 - Florian Suess / @suessflorian

06/23/2019 at 05:05AM

23
#276 - phoibos92@gmail.com / @phoibos92

06/23/2019 at 09:49AM

23
#277 - bolpin / @bolpin

06/24/2019 at 01:52AM

23
#278 - Egor Fedkin / @Jet_Flynn

06/24/2019 at 06:53AM

23
#279 - Epecb / @BceEpecb

06/28/2019 at 11:02PM

23
#280 - Luis Rodriguez / @luisthecoder

07/01/2019 at 09:48AM

23
#281 - Артур Кашаев / @KashaevArthur

07/04/2019 at 01:55PM

23
#282 - Karan Gajwani / @karangb

07/06/2019 at 02:51PM

23
#283 - Benjamin Turner / @passionsplay

07/09/2019 at 03:37AM

23
#284 - Adam Stephen / @2_71828

07/13/2019 at 07:23AM

23
#285 - Bence Nagy / @underyx

07/20/2019 at 10:01AM

23
#286 - Jure Zbontar / @jure_zbontar

07/20/2019 at 01:33PM

24
#287 - tPenguinLTG / @tpenguinltg

02/26/2019 at 02:38AM

24
#288 - Jiho Noh / @JihoNoh

02/28/2019 at 08:52PM

24
#289 - Kevin Ullmann / @kevosauce

02/28/2019 at 10:29PM

24
#290 - Amado Antonini / @AmadoAntonini

03/04/2019 at 02:45PM

24
#291 - Saphire Lattice / @SaphireLattice

03/06/2019 at 04:53AM

24
#292 - dungeon_master / @dungeon60120491

03/08/2019 at 10:36AM

24
#293 - Anthony Catterwell / @ACatterwell

03/09/2019 at 02:31AM

24
#294 - zenwalker / @zenwalker93

03/09/2019 at 01:50PM

24
#295 - Evyk / @Mr_Evyk

03/09/2019 at 10:31PM

24
#296 - Jens / @Jens18925425

03/11/2019 at 04:02PM

24
#297 - crazyminecuber / @crazyminecuber

03/16/2019 at 03:57PM

24
#298 - Galvatron / @mattjg908

03/16/2019 at 11:00PM

24
#299 - 黒澤亮二 / @rjkuro

03/24/2019 at 01:49PM

24
#300 - Nieko Maatjes / @niekomaatjes

03/25/2019 at 10:45AM