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

1879 active golfers, 7911 entries

Leaderboard (lowest score wins):
35
#1621 - Robin Abrahamsson / @rqAbrahamsson

07/22/2019 at 07:27PM

35
#1622 - Pittson / @Pittson95

07/31/2019 at 04:18PM

35
#1623 - Lukas Stratmann / @Lumpiluk

08/07/2019 at 02:21PM

35
#1624 - Le Tu Binh / @LeTuBinh1

08/22/2019 at 06:33AM

35
#1625 - schlecky / @schlecky3

09/10/2019 at 01:52PM

35
#1626 - robikudor / @robikudor

09/19/2019 at 10:51AM

35
#1627 - coelacanth / @coelacanthco

10/21/2019 at 03:42PM

35
#1628 - Trevor Fehrman / @TrevorFehrman

10/25/2019 at 06:05PM

35
#1629 - Timo Böhm / @TimoBohm

11/25/2019 at 07:46AM

35
#1630 - Alexandre Jacquin / @kinnou02

12/02/2019 at 10:39AM

35
#1631 - afk / @Allan_FK

12/05/2019 at 01:26PM

35
#1632 - Scott Smith / @Scottaino

12/23/2019 at 02:43AM

35
#1633 - Alex Bartol / @alexbartol

01/09/2020 at 07:31PM

35
#1634 - Emil / @emilklindt

02/05/2020 at 12:35PM

35
#1635 - Thomas Hiron / @thomashiron

02/20/2023 at 10:21AM

36
#1636 - Kevin Tindall / @kevinkjt2000

03/08/2019 at 01:20AM

36
#1637 - Christopher Fujino / @chrisfujino

03/08/2019 at 02:58AM

36
#1638 - Juan Manuel Fresia / @fresiajm

03/17/2019 at 03:44AM

36
#1639 - Dan Loewenherz / @dwlz

04/26/2019 at 04:06PM

36
#1640 - koern82 / @koern82

06/04/2019 at 08:36AM

36
#1641 - Furopure / @furopure

06/19/2019 at 03:50AM

36
#1642 - Thiago Preischadt / @TPreischadt

07/10/2019 at 02:04AM

36
#1643 - Bob Ren / @bobrenjc93

07/22/2019 at 10:14PM

36
#1644 - Mike Hourahine / @mhourahine

07/31/2019 at 04:21AM

36
#1645 - RevoGen / @gen_revo

08/24/2019 at 05:20AM

36
#1646 - Mark / @markfilus

09/12/2019 at 02:33AM

36
#1647 - Temp / @San5nom

09/20/2019 at 08:25PM

36
#1648 - Robin Schütgens / @RobinSchuetgens

09/27/2019 at 10:13AM

36
#1649 - TechBurgers / @TechBurgers

10/05/2019 at 10:19AM

36
#1650 - ntn / @ntn60340761

10/11/2019 at 08:43PM