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

1881 active golfers, 7916 entries

Leaderboard (lowest score wins):
21
#151 - kokiteru / @hommakoki

07/29/2019 at 04:22AM

21
#152 - Himavanth Reddy / @Himavanth1909

07/29/2019 at 09:26AM

21
#153 - Hayden Wang / @HaydenWang2

07/30/2019 at 07:43AM

21
#154 - Ron Holt / @ron_holt

07/31/2019 at 03:06AM

21
#155 - Joel Elkins / @dice_tea

08/01/2019 at 09:10PM

21
#156 - XiaoXiaoLui / @XiaoXiaoLui1

08/03/2019 at 06:40PM

21
#157 - Andreas Hübner / @hyperbolicus140

08/04/2019 at 07:06PM

21
#158 - 张忠荣 / @ZZRcooperation

08/06/2019 at 11:13AM

21
#159 - DrHobo / @_DrHobo_

08/07/2019 at 01:45AM

21
#160 - sooqua / @sooqua

08/07/2019 at 01:04PM

21
#161 - NieDżejkob / @NieDzejkob

08/08/2019 at 11:12PM

21
#162 - Thomas Tøkje / @tokjenator

08/09/2019 at 03:41PM

21
#163 - ameebo / @meebwish546

08/09/2019 at 08:07PM

21
#164 - Martin Delille / @martinodelilo

08/12/2019 at 10:24AM

21
#165 - Adam Hartz / @awareofnow

08/17/2019 at 11:36PM

21
#166 - theBecwar / @thebecwar

08/19/2019 at 11:59AM

21
#167 - Sébastien Boyron / @SBoyron

08/19/2019 at 02:44PM

21
#168 - Bryan Enders / @B_Endersstocker

08/20/2019 at 11:18AM

21
#169 - Marco💾 / @markomannux

08/21/2019 at 01:42PM

21
#170 - omahn / @omahn

08/23/2019 at 10:06PM

21
#171 - JS / @jjohsan

08/27/2019 at 07:02AM

21
#172 - dpetrovic_vimgolf / @DpetrovicV

08/28/2019 at 11:49AM

21
#173 - Rich Cheng / @sedm0784

08/29/2019 at 10:03AM

21
#174 - Andrew Blokzyl / @linuxKd

08/29/2019 at 05:44PM

21
#175 - Menaal Cochran / @CochranMenaal

09/01/2019 at 12:28AM

21
#176 - Rohan Verma / @rhnvrm

09/05/2019 at 09:24PM

21
#177 - Christopher Weyand / @swordman378

09/06/2019 at 03:43PM

21
#178 - Zach Ingbretsen / @ZIngbretsen

09/06/2019 at 04:49PM

21
#179 - Nathan Bendich / @neonb88

09/08/2019 at 02:28PM

21
#180 - Andac Safa / @SanDForcE94

09/10/2019 at 06:22AM