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

871 active golfers, 3582 entries

Leaderboard (lowest score wins):
23
#331 - Epecb / @BceEpecb

06/28/2019 at 11:02PM

23
#332 - Luis Rodriguez / @luisthecoder

07/01/2019 at 09:48AM

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

07/04/2019 at 01:55PM

23
#334 - Karan Gajwani / @karangb

07/06/2019 at 02:51PM

23
#335 - Benjamin Turner / @passionsplay

07/09/2019 at 03:37AM

23
#336 - Adam Stephen / @2_71828

07/13/2019 at 07:23AM

23
#337 - Bence Nagy / @underyx

07/20/2019 at 10:01AM

23
#338 - Jure Zbontar / @jure_zbontar

07/20/2019 at 01:33PM

23
#339 - Calum Halpin / @calumhalpin

07/21/2019 at 06:57PM

23
#340 - grantopher orange / @grantopher

07/22/2019 at 10:43PM

23
#341 - Amir Hossein / @AmirHRAD8

07/23/2019 at 08:48PM

23
#342 - jestem króliczkiem / @karlicoss

07/25/2019 at 08:25AM

23
#343 - Colby Brown / @colbyabrown

07/26/2019 at 04:04PM

23
#344 - Jonathan Browning / @yungjig90

07/30/2019 at 03:44AM

23
#345 - Turkey Man / @lvturkeyman

08/01/2019 at 05:33AM

23
#346 - りんご / @ringo9971

08/05/2019 at 08:24AM

23
#347 - Dax / @zacoxi

08/07/2019 at 04:49AM

23
#348 - André Reigoto / @AndreReigoto

08/08/2019 at 01:36PM

23
#349 - Noisome Possum / @NoisomePossum

08/10/2019 at 06:11AM

23
#350 - Diego Navarro / @die_4001

08/13/2019 at 04:05AM

23
#351 - Lajos Koszti / @Ajnasz

08/13/2019 at 09:27AM

23
#352 - Wistan Chou / @wisty97

08/14/2019 at 04:01PM

23
#353 - Oleg Skillup / @skill_up

08/23/2019 at 06:13PM

23
#354 - David Johnston / @nuts4nuts4nuts

08/24/2019 at 12:46AM

23
#355 - VeeDeltaVee / @VeeDeltaVee

08/24/2019 at 05:55PM

23
#356 - David Ding / @gnidding

08/28/2019 at 02:47AM

23
#357 - sundeep routhu / @sundeep12005

08/29/2019 at 02:46PM

23
#358 - Madelyn Freed / @EcoBummer

09/03/2019 at 09:46PM

23
#359 - Baine Wedlock / @BaineWedlock

09/05/2019 at 02:18PM

23
#360 - averageRandomPerson / @averageRandomP1

09/08/2019 at 10:30PM