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):
25
#991 - Richard Pape / @Drippydik187

04/05/2020 at 01:30PM

25
#992 - Ray Guan / @guanxi555

04/10/2020 at 04:04AM

25
#993 - dule2607 / @dule26071

05/05/2020 at 04:16PM

25
#994 - Jan Fiser / @dmmn082

05/08/2020 at 10:18AM

25
#995 - Ciaran Sundborg / @intrntsmostholy

05/09/2020 at 01:58PM

25
#996 - Raphael / @Console64

05/15/2020 at 07:39AM

25
#997 - otfsenter / @otfsenter

06/04/2020 at 02:02PM

25
#998 - LCY / @Chooneh

06/06/2020 at 05:07AM

25
#999 - Deepak Talan / @d02d33pak

07/05/2020 at 11:14AM

25
#1000 - Jason Zhang / @jiamingz721

07/21/2020 at 04:40AM

25
#1001 - Yannick / @Yannick88147038

07/21/2020 at 09:18AM

25
#1002 - Put me on your list tyrants / @electronjunkie

08/11/2020 at 11:34AM

25
#1003 - Luc Kien Hang / @luckienhang

09/03/2020 at 08:28PM

25
#1004 - Pepe / @PedroVassena

09/08/2020 at 07:03AM

25
#1005 - JP / @JP16366170

09/08/2020 at 11:42AM

25
#1006 - Kurt Keller / @KurtKeller

09/08/2020 at 07:39PM

25
#1007 - Julian Geiger / @JulianGeiger14

10/10/2020 at 07:28AM

25
#1008 - Ramūnas Musteikis / @RamnasMusteiki1

10/17/2020 at 01:41PM

25
#1009 - Muradil / @MuradilUdun

10/20/2020 at 11:32PM

25
#1010 - Yondonjamts Ganzorig / @yondonjamts_g

11/14/2020 at 09:33PM

25
#1011 - Robert Verst / @r_verst

11/26/2020 at 01:59PM

25
#1012 - Alex Watson / @AlexDewiWatson

12/01/2020 at 02:14PM

25
#1013 - — / @Cenarius

12/07/2020 at 01:01AM

25
#1014 - zapakh / @zapakh

01/21/2021 at 01:54AM

25
#1015 - notctsk / @notctsk

01/24/2021 at 05:17PM

25
#1016 - :wq / @write_quit_22

06/08/2021 at 10:43AM

26
#1017 - Jacob Degeling / @JacobDegeling

02/27/2019 at 09:07AM

26
#1018 - Carsano / @DamienFbn

02/28/2019 at 01:05PM

26
#1019 - Øystein Walle / @oysteinwalle

02/28/2019 at 01:28PM

26
#1020 - Halle Knast / @halleknast

03/11/2019 at 05:10PM