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

454 active golfers, 1827 entries

Leaderboard (lowest score wins):
31
#331 - DanSnow / @dododavid006

03/06/2019 at 02:08AM

31
#332 - Unidentified Person / @tripleaperson

03/06/2019 at 07:47AM

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

03/08/2019 at 02:24AM

31
#334 - Deepstack / @deepstackux

03/14/2019 at 04:52PM

31
#335 - The Joe / @computerjoe708

03/17/2019 at 03:54PM

31
#336 - Konstantin Shcherban / @shcherban_en

04/01/2019 at 12:49PM

31
#337 - Daniel Li / @delete12_

04/11/2019 at 12:41AM

31
#338 - Sam Houston / @shouston33

04/14/2019 at 09:48AM

31
#339 - Lewis Guignard / @LewisGuignard

04/15/2019 at 04:19AM

31
#340 - Blocky Balboa / @g8logic

04/20/2019 at 01:43AM

31
#341 - woddy cyconer / @woddy1

04/22/2019 at 11:43AM

31
#342 - Mike C / @StrixVariaXIX

04/22/2019 at 01:52PM

31
#343 - rhae / @amaceda

04/25/2019 at 08:43PM

31
#344 - Nils Moehrle / @MoehrleNils

05/06/2019 at 07:29PM

31
#345 - Ondrej Poradek / @OPoradek

05/12/2019 at 12:06PM

31
#346 - David McDonald / @dmcdona

05/15/2019 at 07:43AM

32
#347 - Holden Lewis / @lonnez90

03/09/2019 at 12:38AM

32
#348 - Jonathan C. Dietrich / @jcdietrich

03/13/2019 at 02:49PM

32
#349 - etherflow / @etherfl0w

04/01/2019 at 03:15PM

32
#350 - HMSBoaty / @HMS_Boaty

04/09/2019 at 10:09PM

32
#351 - てんなし / @tnnsh1

04/22/2019 at 07:35AM

32
#352 - Manuel Filz / @f1l2

04/23/2019 at 04:18PM

32
#353 - Michaël Lévesque-Dion / @mlevesquedion

04/25/2019 at 12:39AM

32
#354 - kenzie / @kenziefcc

05/10/2019 at 06:04PM

33
#355 - Arend Lagendijk / @arendlagendijk

03/03/2019 at 04:49PM

33
#356 - PJ Frazer / @pj_frazer

03/04/2019 at 12:03AM

33
#357 - Raul / @Raul50174499

03/22/2019 at 10:37AM

33
#358 - Radoslaw Ow / @radoslaw_ow

03/28/2019 at 02:45PM

33
#359 - lobo / @lobo16303575

04/14/2019 at 11:13AM

33
#360 - Iver Håkonsen / @HakonsenIver

04/23/2019 at 08:11PM