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

1867 active golfers, 7830 entries

Leaderboard (lowest score wins):
29
#1321 - Larry McClenon / @uptotheroof

12/31/2019 at 04:49PM

29
#1322 - beew71493 / @beew71493

01/11/2020 at 04:33AM

29
#1323 - Taamas / @Teatrero5

01/18/2020 at 11:09AM

29
#1324 - く / @noblack_nolife

01/21/2020 at 06:43AM

29
#1325 - Aníbal / @anibal10

02/01/2020 at 06:23PM

29
#1326 - fumiyakk / @fumiyakk

02/16/2020 at 08:51AM

29
#1327 - Franckdemda / @Franckdemda

02/16/2020 at 01:13PM

29
#1328 - ser / @ser_robo

02/29/2020 at 06:29AM

29
#1329 - 廖彥智 / @JeffYenchih

03/03/2020 at 09:39AM

29
#1330 - Piotr Grzegorski / @PGrzegorski

03/06/2020 at 12:52PM

29
#1331 - Ishi / @HalloWard1

03/08/2020 at 09:46AM

29
#1332 - Etienne Tremel / @etiennetremel

03/10/2020 at 11:54AM

29
#1333 - Nguyen Hung / @Ikazuchi16

03/15/2020 at 04:15PM

29
#1334 - manfred knapp / @fred_pooshka

03/24/2020 at 09:03PM

29
#1335 - Joe Farnsworth / @JoeFarnsworth

03/25/2020 at 03:10AM

29
#1336 - Austin Letson / @austin_letson

04/24/2020 at 03:41PM

29
#1337 - shamibys / @shamibys

04/26/2020 at 08:14PM

29
#1338 - jhoanfalcon / @jhoanfalcon1

05/10/2020 at 05:11PM

29
#1339 - Matt DB / @MattDB12

05/11/2020 at 07:54PM

29
#1340 - betmaster / @betmstr

05/30/2020 at 01:46PM

29
#1341 - L Z / @unidevel

07/05/2020 at 02:01AM

29
#1342 - analogpixel / @analogp1xel

07/14/2020 at 12:22PM

29
#1343 - Coded / @coded_nz

07/24/2020 at 09:22AM

29
#1344 - Siegfried Gessulat / @sgessulat

10/31/2020 at 11:58AM

29
#1345 - kse / @kse92733183

11/21/2020 at 12:23AM

29
#1346 - why.degree / @WhyDegree

11/24/2020 at 02:16PM

29
#1347 - dsfdaaasdfasdfgsdfeasdf / @dsfdaaasdfasdf1

01/18/2021 at 10:42AM

29
#1348 - Jianfeng / @Jianfen22425058

01/28/2021 at 03:10AM

29
#1349 - vimgolfaccfekxh / @vimgolfaccfekxh

10/19/2022 at 11:26PM

29
#1350 - Nicholas Healy / @nickrhealy

12/29/2022 at 02:06PM