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

1517 active golfers, 6387 entries

Leaderboard (lowest score wins):
28
#991 - KoboldTheGreat / @koboldthegreat

07/19/2019 at 09:16AM

28
#992 - FreeTheBSD / @FreeTheBSD

07/20/2019 at 02:45AM

28
#993 - 那森 / @gewhersss

08/04/2019 at 01:45PM

28
#994 - Matt Tuttle / @Matt_Tuttle

08/09/2019 at 04:02PM

28
#995 - John Meuser / @meuserj

08/27/2019 at 08:06PM

28
#996 - Amil / @amilsil

08/29/2019 at 04:57AM

28
#997 - Doug Chan / @Coufu

08/30/2019 at 09:27PM

28
#998 - ░C░o░o░p░e░r░ ░L░u░c░e░ / @16cluce

09/04/2019 at 05:37AM

28
#999 - Jonathan Lozinski / @jlozinski

09/19/2019 at 07:57AM

28
#1000 - brypto / @hiimbenjy

09/30/2019 at 04:31AM

28
#1001 - Pieter Joost / @pjvds

10/09/2019 at 12:44PM

28
#1002 - Chadj Tomis / @ChadjTomis

10/25/2019 at 10:55PM

28
#1003 - Félix Pelletier / @YetAnotherFelix

11/03/2019 at 08:52PM

28
#1004 - Jesse Widner / @widner_jesse

11/11/2019 at 12:53AM

28
#1005 - Karel Vervaeke / @karel1980

11/14/2019 at 08:13AM

28
#1006 - Harsha Laxman / @harshlax

11/17/2019 at 11:40PM

28
#1007 - Lion de Bell / @CLGBamboo

11/30/2019 at 10:43PM

28
#1008 - adamtobias / @adamtobias

12/05/2019 at 05:53PM

28
#1009 - zqi / @zq11110320

12/26/2019 at 09:09AM

28
#1010 - Florian Kempenich / @ThisIsFlorianK

12/28/2019 at 10:25AM

28
#1011 - 5m0r14x / @5m0r14x

01/10/2020 at 08:17PM

28
#1012 - Kota Mori / @KotaMori1

01/15/2020 at 03:43AM

28
#1013 - Nguyen Van Bac / @taybacvt

01/18/2020 at 04:03AM

28
#1014 - Enrique Gómez Cruz / @couscouscricket

01/31/2020 at 07:01AM

28
#1015 - Michał / @MichalPiotrK

02/03/2020 at 08:12AM

28
#1016 - Bradley Pankow / @BTPankow

02/21/2020 at 09:35PM

28
#1017 - Valdimar / @genkobar

02/26/2020 at 10:21PM

28
#1018 - Robin / @donpavlas

03/03/2020 at 12:02PM

28
#1019 - MrSunshineBug / @MrSunshineBug

03/21/2020 at 01:44PM

28
#1020 - Nick Buser / @buser_nick

03/24/2020 at 01:33AM