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

1879 active golfers, 7911 entries

Leaderboard (lowest score wins):
29
#1351 - analogpixel / @analogp1xel

07/14/2020 at 12:22PM

29
#1352 - Coded / @coded_nz

07/24/2020 at 09:22AM

29
#1353 - Siegfried Gessulat / @sgessulat

10/31/2020 at 11:58AM

29
#1354 - kse / @kse92733183

11/21/2020 at 12:23AM

29
#1355 - why.degree / @WhyDegree

11/24/2020 at 02:16PM

29
#1356 - dsfdaaasdfasdfgsdfeasdf / @dsfdaaasdfasdf1

01/18/2021 at 10:42AM

29
#1357 - Jianfeng / @Jianfen22425058

01/28/2021 at 03:10AM

29
#1358 - vimgolfaccfekxh / @vimgolfaccfekxh

10/19/2022 at 11:26PM

29
#1359 - Nicholas Healy / @nickrhealy

12/29/2022 at 02:06PM

29
#1360 - Gerard Keane / @gerardkeane

05/16/2024 at 11:56AM

29
#1361 - TomoProg / @TomoProg

12/11/2024 at 08:27AM

30
#1362 - Andrew Shu / @montooner

03/10/2019 at 02:17AM

30
#1363 - 임하정 / @m9XhkZL9XpMgt47

03/10/2019 at 07:27AM

30
#1364 - Sarang Khim / @sarang_khim

03/11/2019 at 02:27AM

30
#1365 - Alex Mihov / @AlexMihov

03/21/2019 at 10:49AM

30
#1366 - Joseph A Shalabi / @JosephShalabi

04/03/2019 at 04:28PM

30
#1367 - Slava Kim / @imslavko

04/11/2019 at 09:52PM

30
#1368 - EarthToAbigail / @EarthAbigail

04/14/2019 at 03:57PM

30
#1369 - tapio / @gncnaxb

04/18/2019 at 12:01PM

30
#1370 - Sam Miller / @sam_miller93

04/24/2019 at 01:50PM

30
#1371 - Mekhi Thomas / @ReelGreenRanger

04/24/2019 at 02:23PM

30
#1372 - Andy / @_andys8

04/27/2019 at 03:50PM

30
#1373 - りょー / @ryoo141

05/08/2019 at 01:15PM

30
#1374 - bsjd / @bsjd

05/15/2019 at 08:46PM

30
#1375 - Daniel Moi / @DM1199

05/31/2019 at 01:48AM

30
#1376 - Juraj Skvarla / @JurajSkvarla

06/10/2019 at 11:41AM

30
#1377 - Hog of the Forsaken / @leonrobbins

06/27/2019 at 05:52PM

30
#1378 - Adam Pollack / @apollack11

07/12/2019 at 10:54PM

30
#1379 - flummox / @flummox16

08/02/2019 at 08:32PM

30
#1380 - Alberto Pose / @thepose

08/17/2019 at 04:15PM