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

1836 active golfers, 7682 entries

Leaderboard (lowest score wins):
26
#1081 - Gunter Kluge / @KlugeGunter

01/04/2021 at 12:43AM

26
#1082 - Linus Bergman / @LinusBergman8

04/30/2021 at 07:34AM

26
#1083 - Graffiti.Lab / @Graffiti2U

03/16/2022 at 02:50PM

27
#1084 - Mauricio Ariza / @_hell_spawn

02/25/2019 at 10:22PM

27
#1085 - əarth simulator / @eidoloncity

02/27/2019 at 10:49PM

27
#1086 - BlackCap / @BlackCapCoder

02/28/2019 at 06:16PM

27
#1087 - Oddwel / @Oddwel

03/01/2019 at 01:03PM

27
#1088 - adir ohayon / @AdirKip

03/02/2019 at 01:26PM

27
#1089 - vince / @vincentvangott

03/02/2019 at 11:01PM

27
#1090 - Alexander Popov / @Alexand01782341

03/04/2019 at 03:01PM

27
#1091 - Simon Rycroft / @sirycroftmusic

03/08/2019 at 04:22PM

27
#1092 - Patrick Lavin / @LavinComputes

03/12/2019 at 10:13PM

27
#1093 - Lambert Green / @Lambert_Green

03/19/2019 at 06:22PM

27
#1094 - Shahin Mohammad Sali / @shaahiinms

03/25/2019 at 08:40PM

27
#1095 - Ivan Krukov / @i_krukov

04/04/2019 at 11:14PM

27
#1096 - Banner B. Schafer / @BannerBSchafer

04/08/2019 at 03:13AM

27
#1097 - Andrei Gasparovici / @agasparovici

04/09/2019 at 06:42AM

27
#1098 - wort / @rtiago98

04/10/2019 at 12:14PM

27
#1099 - Ben Allan / @hellobenallan

04/10/2019 at 01:01PM

27
#1100 - PCS Solutions / @PeteSolutions

04/18/2019 at 11:18AM

27
#1101 - Keven / @czzhengkw

04/25/2019 at 01:37PM

27
#1102 - Alexánder Caba / @CabaAlexander

05/02/2019 at 05:34PM

27
#1103 - vimgolfer24271 / @vimgolfer24271

05/10/2019 at 11:45AM

27
#1104 - zmf_tim / @zmf_tim

05/11/2019 at 03:44PM

27
#1105 - jibai Gao / @jibaiGao

05/18/2019 at 09:12AM

27
#1106 - Nick Anishenko / @NAnishenko

05/22/2019 at 04:36AM

27
#1107 - Ida Motzfeldt / @Sophonacs

05/26/2019 at 05:40PM

27
#1108 - Erik Lindeborg / @ErikLindeborg

06/07/2019 at 04:10PM

27
#1109 - Hugo Tai / @HugoTai100

06/11/2019 at 05:17AM

27
#1110 - Sato Takayuki / @yukitaka1974

06/20/2019 at 05:46PM