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

1003 active golfers, 4167 entries

Leaderboard (lowest score wins):
29
#691 - Jack Mooney / @jmooney7

08/22/2019 at 08:03AM

29
#692 - Marcin Krajewski / @mkrajewski_

08/29/2019 at 09:08AM

29
#693 - Sebin Babu / @sarcasticbabu

09/24/2019 at 01:09PM

29
#694 - Niels Pedersen / @NielsLearnsPy

10/02/2019 at 01:38PM

29
#695 - tuctdape / @tuctdape1

10/10/2019 at 08:20PM

29
#696 - Udalny / @Udalny1

10/15/2019 at 08:51AM

29
#697 - Dylan Bulfin / @dbulf3

10/19/2019 at 12:29AM

29
#698 - xjkhst / @xjkhst

10/19/2019 at 12:07PM

29
#699 - Dodge Coates / @coates_dodge

10/20/2019 at 10:38PM

29
#700 - Eleks Aggr / @AggrEleks

10/22/2019 at 12:39PM

29
#701 - alibabadienstaccount / @alibabadiensta1

11/04/2019 at 03:38PM

30
#702 - Andrew Shu / @montooner

03/10/2019 at 02:17AM

30
#703 - 임하정 / @m9XhkZL9XpMgt47

03/10/2019 at 07:27AM

30
#704 - Sarang Khim / @sarang_khim

03/11/2019 at 02:27AM

30
#705 - Alex Mihov / @AlexMihov

03/21/2019 at 10:49AM

30
#706 - Joseph A Shalabi / @JosephShalabi

04/03/2019 at 04:28PM

30
#707 - Slava Kim / @imslavko

04/11/2019 at 09:52PM

30
#708 - EarthToAbigail / @EarthAbigail

04/14/2019 at 03:57PM

30
#709 - tapio / @gncnaxb

04/18/2019 at 12:01PM

30
#710 - Sam Miller / @sam_miller93

04/24/2019 at 01:50PM

30
#711 - Mekhi Thomas / @ReelGreenRanger

04/24/2019 at 02:23PM

30
#712 - Andy / @_andys8

04/27/2019 at 03:50PM

30
#713 - りょ / @ryoo141

05/08/2019 at 01:15PM

30
#714 - bsjd / @bsjd

05/15/2019 at 08:46PM

30
#715 - Daniel Moi / @DM1199

05/31/2019 at 01:48AM

30
#716 - Juraj Skvarla / @Athlet

06/10/2019 at 11:41AM

30
#717 - Hog of the Forsaken / @leonrobbins

06/27/2019 at 05:52PM

30
#718 - Adam Pollack / @apollack11

07/12/2019 at 10:54PM

30
#719 - flummox / @flummox16

08/02/2019 at 08:32PM

30
#720 - Alberto Pose / @thepose

08/17/2019 at 04:15PM