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

1869 active golfers, 7845 entries

Leaderboard (lowest score wins):
22
#511 - zlogan / @zlogan2003

11/24/2019 at 04:20PM

22
#512 - Przemysław Michalak / @dambusio

11/25/2019 at 07:43PM

22
#513 - Eric Johnson / @dej79

12/03/2019 at 07:36AM

22
#514 - John Prescott / @wladeczek44

12/11/2019 at 07:56PM

22
#515 - heyyou / @hey3you3

12/12/2019 at 11:29PM

22
#516 - hokonch / @hokonch

12/24/2019 at 11:58AM

22
#517 - Tefe / @tefetic

01/02/2020 at 08:52AM

22
#518 - Chrostopher Leu / @shaggadalic

01/09/2020 at 12:49PM

22
#519 - Felix Boers / @felixboers

01/12/2020 at 04:45PM

22
#520 - 밤색 / @aeisura

01/16/2020 at 04:58AM

22
#521 - Rune Warhuus / @DinkDonkNorway

01/21/2020 at 05:58PM

22
#522 - Renns / @Renns95250521

02/07/2020 at 11:32PM

22
#523 - Matthew / @Burfield12

02/17/2020 at 10:59PM

22
#524 - Chris League / @chrisleague

02/22/2020 at 09:03PM

22
#525 - Jonathan Stinson / @KnightdeadJohn

02/27/2020 at 01:33PM

22
#526 - Victor Ramirez / @virako

04/01/2020 at 10:19AM

22
#527 - mury liang / @muryliang

04/04/2020 at 06:48AM

22
#528 - Ryan Burmeister-Morrison / @rburmorrison

04/11/2020 at 09:01PM

22
#529 - Victor / @victor_rma

04/24/2020 at 09:52PM

22
#530 - xarmux / @xarmux

04/25/2020 at 10:06AM

22
#531 - Greg Jebb / @jebbster

05/10/2020 at 09:57PM

22
#532 - iBhagwan / @iiBhagwan

05/11/2020 at 01:56AM

22
#533 - Kai.Li / @KaiLi19

05/25/2020 at 07:54AM

22
#534 - pady. 🇪🇺 @hundertzwoelf@sueden.social / @hundertzwoelf_

05/26/2020 at 07:36AM

22
#535 - Jewi / @j3wi

05/27/2020 at 03:20PM

22
#536 - Israr Khan / @isrark

06/01/2020 at 08:13PM

22
#537 - Georg Kaaserer / @climbim

06/07/2020 at 10:18AM

22
#538 - soundscope / @__soundscope__

06/30/2020 at 08:03AM

22
#539 - Adrián Delgado / @Caritativito

07/12/2020 at 12:37AM

22
#540 - Saurabh / @Saurabh09299

07/21/2020 at 09:25AM