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

1225 active golfers, 5136 entries

Leaderboard (lowest score wins):
23
#511 - Michael Meixner / @meixner62

01/21/2020 at 01:17PM

23
#512 - Thomas Jung / @ThomasAJung

01/24/2020 at 03:20PM

23
#513 - Lukas Klingberg / @ElKlingberg

01/26/2020 at 05:32PM

23
#514 - Braintwister / @Braintwister13

02/02/2020 at 08:49PM

23
#515 - majo senf / @majo_senf

02/06/2020 at 04:04PM

23
#516 - Jonathan Skeate / @jskeate

02/09/2020 at 07:50PM

23
#517 - 骑空士阿为 / @wuwe19

02/12/2020 at 10:18AM

23
#518 - Kyle X. Clark / @KyXr_Clark

02/12/2020 at 06:52PM

23
#519 - みむら / @rnirnu

02/16/2020 at 04:12AM

23
#520 - Jakub / @Jaqbek

02/17/2020 at 11:24AM

24
#521 - tPenguinLTG / @tpenguinltg

02/26/2019 at 02:38AM

24
#522 - Jiho Noh / @JihoNoh

02/28/2019 at 08:52PM

24
#523 - Kevin Ullmann / @kevosauce

02/28/2019 at 10:29PM

24
#524 - Amado Antonini / @AmadoAntonini

03/04/2019 at 02:45PM

24
#525 - Saphire Lattice / @SaphireLattice

03/06/2019 at 04:53AM

24
#526 - dungeon_master / @dungeon60120491

03/08/2019 at 10:36AM

24
#527 - Anthony Catterwell / @ACatterwell

03/09/2019 at 02:31AM

24
#528 - zenwalker / @zenwalker93

03/09/2019 at 01:50PM

24
#529 - Evyk / @Mr_Evyk

03/09/2019 at 10:31PM

24
#530 - Jens / @Jens18925425

03/11/2019 at 04:02PM

24
#531 - crazyminecuber / @crazyminecuber

03/16/2019 at 03:57PM

24
#532 - Galvatron / @mattjg908

03/16/2019 at 11:00PM

24
#533 - 黒澤亮二 / @rjkuro

03/24/2019 at 01:49PM

24
#534 - Nieko Maatjes / @niekomaatjes

03/25/2019 at 10:45AM

24
#535 - 心がポッキー / @lawliteqed

03/26/2019 at 11:39AM

24
#536 - Aman Dogra / @amandogra

04/02/2019 at 11:27PM

24
#537 - milserk / @milserk

04/04/2019 at 11:21AM

24
#538 - Matteo / @Matteo_Mer

04/04/2019 at 10:49PM

24
#539 - Nicolas Daval / @ndaval

04/07/2019 at 01:27PM

24
#540 - Mike Harris / @MikeMJHarris

04/09/2019 at 02:56PM