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
#1051 - Jonathan Yong / @yongrenjie

10/02/2019 at 08:53AM

26
#1052 - tuck / @19emtuck

10/13/2019 at 04:57PM

26
#1053 - sawtag / @sawtag1

10/30/2019 at 10:27AM

26
#1054 - Mark Brody / @_markbrody

11/02/2019 at 06:44PM

26
#1055 - Eliseo / @Eliseohh_A

11/09/2019 at 07:00AM

26
#1056 - Steve Racanovic / @steve_racanovic

12/17/2019 at 10:00PM

26
#1057 - l4cr0ss / @l4cr0ss

12/19/2019 at 08:16PM

26
#1058 - John Woolley / @megdatronica

12/20/2019 at 11:24AM

26
#1059 - Marian Minar (jr.) / @majamin

12/23/2019 at 05:46AM

26
#1060 - Cody Heimberger / @certifiedloud

01/09/2020 at 09:33PM

26
#1061 - Jon Crowe / @joncrowe

01/28/2020 at 09:07AM

26
#1062 - Pietrino Atzeni / @beoboo

02/18/2020 at 02:09PM

26
#1063 - noremac / @noremac66873702

03/02/2020 at 08:46PM

26
#1064 - Taeer Bar-Yam / @sjOrrit

03/03/2020 at 02:59AM

26
#1065 - Jean-Francois Parent / @hacker_pyrat

03/08/2020 at 04:35PM

26
#1066 - James Rayman / @jamsramen

03/13/2020 at 07:15PM

26
#1067 - Under Blown / @iovuio

03/18/2020 at 04:31AM

26
#1068 - John Doe / @JohnDoe77150954

03/18/2020 at 10:36PM

26
#1069 - Sviatoslav / @Sviatos84212895

03/23/2020 at 11:12AM

26
#1070 - Frank Harrison / @doublethefish

03/29/2020 at 02:44PM

26
#1071 - Christophe Robillard / @krichtof

05/06/2020 at 09:16PM

26
#1072 - ᕦ( ͡° ͜ʖ ͡°)ᕤ / @eduardoarandah

05/17/2020 at 02:49AM

26
#1073 - Ali Aslan / @AliAsla95742367

05/17/2020 at 04:39PM

26
#1074 - Dilek / @shn_dlk

05/24/2020 at 07:16PM

26
#1075 - Patrick Weigert / @PatrickWeigert

06/01/2020 at 12:27AM

26
#1076 - candywrappercrane / @cndwrpprpprcrn

06/11/2020 at 08:48PM

26
#1077 - mohamed / @melsayed891

06/11/2020 at 11:19PM

26
#1078 - Rustem B. / @_rustemb

07/31/2020 at 05:20PM

26
#1079 - Martin Bielik / @mabielik

08/06/2020 at 09:02PM

26
#1080 - 𝗙 ▲ 𝗥 𝗜 𝗦 𝗦 / @APsockes

10/07/2020 at 11:58PM