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

1021 active golfers, 4246 entries

Leaderboard (lowest score wins):
30
#721 - EarthToAbigail / @EarthAbigail

04/14/2019 at 03:57PM

30
#722 - tapio / @gncnaxb

04/18/2019 at 12:01PM

30
#723 - Sam Miller / @sam_miller93

04/24/2019 at 01:50PM

30
#724 - Mekhi Thomas / @ReelGreenRanger

04/24/2019 at 02:23PM

30
#725 - Andy / @_andys8

04/27/2019 at 03:50PM

30
#726 - りょ / @ryoo141

05/08/2019 at 01:15PM

30
#727 - bsjd / @bsjd

05/15/2019 at 08:46PM

30
#728 - Daniel Moi / @DM1199

05/31/2019 at 01:48AM

30
#729 - Juraj Skvarla / @Athlet

06/10/2019 at 11:41AM

30
#730 - Hog of the Forsaken / @leonrobbins

06/27/2019 at 05:52PM

30
#731 - Adam Pollack / @apollack11

07/12/2019 at 10:54PM

30
#732 - flummox / @flummox16

08/02/2019 at 08:32PM

30
#733 - Alberto Pose / @thepose

08/17/2019 at 04:15PM

30
#734 - Alexander Dikelsky / @ADikelsky

08/19/2019 at 07:23PM

30
#735 - Raymar Monte / @RaymarMonte

08/25/2019 at 02:19PM

30
#736 - Urbanovics Péter / @UrbanovicsP

08/29/2019 at 08:37AM

30
#737 - Jose Soto / @JoseCanHelp

09/09/2019 at 01:40AM

30
#738 - 小山内まい / @osanamity

10/07/2019 at 04:27PM

30
#739 - vicver09 / @vicver091

10/24/2019 at 07:20PM

31
#740 - Oskari Virtanen / @osvirtan

02/25/2019 at 06:06PM

31
#741 - Samantha Ramsey / @Samanth12934312

03/01/2019 at 04:53AM

31
#742 - Josh Cohen / @joshhostels

03/03/2019 at 12:13AM

31
#743 - DanSnow / @dododavid006

03/06/2019 at 02:08AM

31
#744 - Unidentified Person / @tripleaperson

03/06/2019 at 07:47AM

31
#745 - @coon@chaos.social / @coon_42

03/08/2019 at 02:24AM

31
#746 - Deepstack / @deepstackux

03/14/2019 at 04:52PM

31
#747 - The Joe / @computerjoe708

03/17/2019 at 03:54PM

31
#748 - Konstantin Shcherban / @shcherban_en

04/01/2019 at 12:49PM

31
#749 - Daniel Li / @delete12_

04/11/2019 at 12:41AM

31
#750 - Sam Houston / @shouston33

04/14/2019 at 09:48AM