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

1867 active golfers, 7830 entries

Leaderboard (lowest score wins):
35
#1621 - afk / @Allan_FK

12/05/2019 at 01:26PM

35
#1622 - Scott Smith / @Scottaino

12/23/2019 at 02:43AM

35
#1623 - Alex Bartol / @alexbartol

01/09/2020 at 07:31PM

35
#1624 - Emil / @emilklindt

02/05/2020 at 12:35PM

35
#1625 - Thomas Hiron / @thomashiron

02/20/2023 at 10:21AM

36
#1626 - Kevin Tindall / @kevinkjt2000

03/08/2019 at 01:20AM

36
#1627 - Christopher Fujino / @chrisfujino

03/08/2019 at 02:58AM

36
#1628 - Juan Manuel Fresia / @fresiajm

03/17/2019 at 03:44AM

36
#1629 - Dan Loewenherz / @dwlz

04/26/2019 at 04:06PM

36
#1630 - koern82 / @koern82

06/04/2019 at 08:36AM

36
#1631 - Furopure / @furopure

06/19/2019 at 03:50AM

36
#1632 - Thiago Preischadt / @TPreischadt

07/10/2019 at 02:04AM

36
#1633 - Bob Ren / @bobrenjc93

07/22/2019 at 10:14PM

36
#1634 - Mike Hourahine / @mhourahine

07/31/2019 at 04:21AM

36
#1635 - RevoGen / @gen_revo

08/24/2019 at 05:20AM

36
#1636 - Mark / @markfilus

09/12/2019 at 02:33AM

36
#1637 - Temp / @San5nom

09/20/2019 at 08:25PM

36
#1638 - Robin Schütgens / @RobinSchuetgens

09/27/2019 at 10:13AM

36
#1639 - TechBurgers / @TechBurgers

10/05/2019 at 10:19AM

36
#1640 - ntn / @ntn60340761

10/11/2019 at 08:43PM

36
#1641 - Jonathan Pence / @Jonathan_Pence

12/25/2019 at 04:07PM

36
#1642 - None / @sh1chuang

12/30/2019 at 09:49AM

36
#1643 - Shekh Ataul / @ataul443

03/08/2020 at 06:50PM

36
#1644 - Peter Tran / @Fulton_Jewelry

03/21/2020 at 12:17AM

36
#1645 - Pulin Agrawal / @pulinagrawal

05/14/2020 at 02:32AM

36
#1646 - jackmark / @jackmar14540583

07/10/2020 at 05:29AM

36
#1647 - drGsus / @drGsus

07/24/2020 at 05:14PM

36
#1648 - Dane / @studdugie

07/27/2020 at 07:11PM

36
#1649 - notadevCollins / @NotadevC

08/10/2020 at 07:10PM

36
#1650 - Oben Özgür / @Obenozgur

08/24/2020 at 03:53PM