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

676 active golfers, 2798 entries

Leaderboard (lowest score wins):
30
#481 - bsjd / @bsjd

05/15/2019 at 08:46PM

30
#482 - Daniel Moi / @DM1199

05/31/2019 at 01:48AM

30
#483 - Juraj Skvarla / @Athlet

06/10/2019 at 11:41AM

30
#484 - Hog of the Forsaken / @leonrobbins

06/27/2019 at 05:52PM

30
#485 - Adam Pollack / @apollack11

07/12/2019 at 10:54PM

31
#486 - Oskari Virtanen / @osvirtan

02/25/2019 at 06:06PM

31
#487 - Samantha Ramsey / @Samanth12934312

03/01/2019 at 04:53AM

31
#488 - Josh Cohen / @joshhostels

03/03/2019 at 12:13AM

31
#489 - DanSnow / @dododavid006

03/06/2019 at 02:08AM

31
#490 - Unidentified Person / @tripleaperson

03/06/2019 at 07:47AM

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

03/08/2019 at 02:24AM

31
#492 - Deepstack / @deepstackux

03/14/2019 at 04:52PM

31
#493 - The Joe / @computerjoe708

03/17/2019 at 03:54PM

31
#494 - Konstantin Shcherban / @shcherban_en

04/01/2019 at 12:49PM

31
#495 - Daniel Li / @delete12_

04/11/2019 at 12:41AM

31
#496 - Sam Houston / @shouston33

04/14/2019 at 09:48AM

31
#497 - Lewis Guignard / @LewisGuignard

04/15/2019 at 04:19AM

31
#498 - Blocky Balboa / @g8logic

04/20/2019 at 01:43AM

31
#499 - woddy cyconer / @woddy1

04/22/2019 at 11:43AM

31
#500 - Mike C / @StrixVariaXIX

04/22/2019 at 01:52PM

31
#501 - rhae / @amaceda

04/25/2019 at 08:43PM

31
#502 - Nils Moehrle / @MoehrleNils

05/06/2019 at 07:29PM

31
#503 - Ondrej Poradek / @OPoradek

05/12/2019 at 12:06PM

31
#504 - David McDonald / @dmcdona

05/15/2019 at 07:43AM

31
#505 - Favio Manriquez / @favrik

05/21/2019 at 04:27AM

31
#506 - seul / @seul15987381

05/24/2019 at 04:32AM

31
#507 - うおお / @uoo38

06/07/2019 at 12:58AM

31
#508 - *9vkZ{YP_XV[XCbNdmnT / @9vkzX

06/08/2019 at 12:24PM

31
#509 - Robin / @0x767570

06/19/2019 at 08:34AM

32
#510 - Holden Lewis / @lonnez90

03/09/2019 at 12:38AM