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

1848 active golfers, 7757 entries

Leaderboard (lowest score wins):
26
#1081 - Dilek / @shn_dlk

05/24/2020 at 07:16PM

26
#1082 - Patrick Weigert / @PatrickWeigert

06/01/2020 at 12:27AM

26
#1083 - candywrappercrane / @cndwrpprpprcrn

06/11/2020 at 08:48PM

26
#1084 - mohamed / @melsayed891

06/11/2020 at 11:19PM

26
#1085 - Rustem B. / @_rustemb

07/31/2020 at 05:20PM

26
#1086 - Martin Bielik / @mabielik

08/06/2020 at 09:02PM

26
#1087 - đť—™ â–˛ đť—Ą đť—ś đť—¦ đť—¦ / @APsockes

10/07/2020 at 11:58PM

26
#1088 - Gunter Kluge / @KlugeGunter

01/04/2021 at 12:43AM

26
#1089 - Linus Bergman / @LinusBergman8

04/30/2021 at 07:34AM

26
#1090 - Graffiti.Lab / @Graffiti2U

03/16/2022 at 02:50PM

26
#1091 - James / @Dronak

11/08/2022 at 10:02PM

27
#1092 - Mauricio Ariza / @_hell_spawn

02/25/2019 at 10:22PM

27
#1093 - əarth simulator / @eidoloncity

02/27/2019 at 10:49PM

27
#1094 - BlackCap / @BlackCapCoder

02/28/2019 at 06:16PM

27
#1095 - Oddwel / @Oddwel

03/01/2019 at 01:03PM

27
#1096 - adir ohayon / @AdirKip

03/02/2019 at 01:26PM

27
#1097 - vince / @vincentvangott

03/02/2019 at 11:01PM

27
#1098 - Alexander Popov / @Alexand01782341

03/04/2019 at 03:01PM

27
#1099 - Simon Rycroft / @sirycroftmusic

03/08/2019 at 04:22PM

27
#1100 - Patrick Lavin / @LavinComputes

03/12/2019 at 10:13PM

27
#1101 - Lambert Green / @Lambert_Green

03/19/2019 at 06:22PM

27
#1102 - Shahin Mohammad Sali / @shaahiinms

03/25/2019 at 08:40PM

27
#1103 - Ivan Krukov / @i_krukov

04/04/2019 at 11:14PM

27
#1104 - Banner B. Schafer / @BannerBSchafer

04/08/2019 at 03:13AM

27
#1105 - Andrei Gasparovici / @agasparovici

04/09/2019 at 06:42AM

27
#1106 - wort / @rtiago98

04/10/2019 at 12:14PM

27
#1107 - Ben Allan / @hellobenallan

04/10/2019 at 01:01PM

27
#1108 - PCS Solutions / @PeteSolutions

04/18/2019 at 11:18AM

27
#1109 - Keven / @czzhengkw

04/25/2019 at 01:37PM

27
#1110 - Alexánder Caba / @CabaAlexander

05/02/2019 at 05:34PM