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

1563 active golfers, 6585 entries

Leaderboard (lowest score wins):
25
#841 - Pham Tuan Anh / @anhpt379

02/16/2020 at 10:34AM

25
#842 - kikugawa816 / @kikugawa816

03/04/2020 at 01:17AM

25
#843 - vtls / @vtls16

03/08/2020 at 05:15AM

25
#844 - Alon Sandler / @AlonSandler

03/11/2020 at 01:41PM

25
#845 - Vitor / @vitorldfreitas

03/21/2020 at 09:33PM

25
#846 - Richard Pape / @Drippydik187

04/05/2020 at 01:30PM

25
#847 - Ray Guan / @guanxi555

04/10/2020 at 04:04AM

25
#848 - fedja golf / @FedjaGolf

04/13/2020 at 12:00AM

25
#849 - dule2607 / @dule26071

05/05/2020 at 04:16PM

25
#850 - Jan Fiser / @dmmn082

05/08/2020 at 10:18AM

25
#851 - Ciaran Sundborg / @intrntsmostholy

05/09/2020 at 01:58PM

25
#852 - Raphael / @Console64

05/15/2020 at 07:39AM

25
#853 - otfsenter / @otfsenter

06/04/2020 at 02:02PM

25
#854 - LCY / @Chooneh

06/06/2020 at 05:07AM

25
#855 - Deepak Talan / @d02d33pak

07/05/2020 at 11:14AM

25
#856 - Jason Zhang / @jiamingz721

07/21/2020 at 04:40AM

25
#857 - Yannick / @Yannick88147038

07/21/2020 at 09:18AM

25
#858 - This is a sniff free zone / @electronjunkie

08/11/2020 at 11:34AM

26
#859 - Jacob Degeling / @JacobDegeling

02/27/2019 at 09:07AM

26
#860 - Carsano / @DamienFbn

02/28/2019 at 01:05PM

26
#861 - Øystein Walle / @oysteinwalle

02/28/2019 at 01:28PM

26
#862 - Halle Knast / @halleknast

03/11/2019 at 05:10PM

26
#863 - Tim Varley / @varleti

03/11/2019 at 10:45PM

26
#864 - Héctor M. Sosa / @Kerait

03/16/2019 at 09:36AM

26
#865 - psliwka / @psliwka2

03/27/2019 at 06:16PM

26
#866 - Adam Procio / @AdamProcio

03/30/2019 at 05:41PM

26
#867 - Ruslan / @zimdero

04/12/2019 at 07:40AM

26
#868 - Mort Rainey / @arch_midnight

04/14/2019 at 12:33PM

26
#869 - Askhat Sakhabiev / @Sakhabiev_Ashat

04/14/2019 at 11:09PM

26
#870 - fucus / @fishlovebanana

04/15/2019 at 12:19AM