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

1864 active golfers, 7827 entries

Leaderboard (lowest score wins):
34
#1591 - Xiao Wangwang / @WangwangXiao

01/20/2021 at 06:38PM

34
#1592 - Hawk Newton / @hawknewton

01/21/2021 at 08:15PM

34
#1593 - Fabrice BONNET / @FabriceBONNET6

04/29/2021 at 04:07PM

35
#1594 - noon / @noonknowsnonuno

03/06/2019 at 03:00PM

35
#1595 - decentninja / @decentninja

03/06/2019 at 07:58PM

35
#1596 - Dennis Parchkov / @DParchkov

03/15/2019 at 07:25PM

35
#1597 - Raúl Cumplido / @raulcumplido

03/19/2019 at 02:46PM

35
#1598 - Emanuele Aliverti / @memeAliverti

04/23/2019 at 02:09PM

35
#1599 - Urquhart #SurrenderBill / @LostUrquhart

05/13/2019 at 11:41AM

35
#1600 - Fernando Motta / @Fmmotta01

06/10/2019 at 12:10PM

35
#1601 - Chris G / @AboutThatThing

06/10/2019 at 03:12PM

35
#1602 - duyanh.y4n.pham / @PhamY4n

06/10/2019 at 05:46PM

35
#1603 - ほた / @hota1024

06/11/2019 at 10:03AM

35
#1604 - vasyharan / @vasyharan

07/02/2019 at 07:05PM

35
#1605 - Slavujko / @Slavujko3

07/03/2019 at 04:53AM

35
#1606 - Gustavo Almeida / @gustaalmeidaws

07/07/2019 at 04:44PM

35
#1607 - Snarf / @desnarf

07/09/2019 at 02:10AM

35
#1608 - Robin Abrahamsson / @rqAbrahamsson

07/22/2019 at 07:27PM

35
#1609 - Pittson / @Pittson95

07/31/2019 at 04:18PM

35
#1610 - Lukas Stratmann / @Lumpiluk

08/07/2019 at 02:21PM

35
#1611 - Le Tu Binh / @LeTuBinh1

08/22/2019 at 06:33AM

35
#1612 - schlecky / @schlecky3

09/10/2019 at 01:52PM

35
#1613 - robikudor / @robikudor

09/19/2019 at 10:51AM

35
#1614 - coelacanth / @coelacanthco

10/21/2019 at 03:42PM

35
#1615 - Trevor Fehrman / @TrevorFehrman

10/25/2019 at 06:05PM

35
#1616 - Timo Böhm / @TimoBohm

11/25/2019 at 07:46AM

35
#1617 - Alexandre Jacquin / @kinnou02

12/02/2019 at 10:39AM

35
#1618 - afk / @Allan_FK

12/05/2019 at 01:26PM

35
#1619 - Scott Smith / @Scottaino

12/23/2019 at 02:43AM

35
#1620 - Alex Bartol / @alexbartol

01/09/2020 at 07:31PM