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

454 active golfers, 1827 entries

Leaderboard (lowest score wins):
23
#151 - Michał Łowicki / @mlowicki

03/26/2019 at 10:06PM

23
#152 - bonky / @bonky87781349

03/27/2019 at 04:22PM

23
#153 - Maximilian F. / @TheMaex

03/30/2019 at 12:37AM

23
#154 - bokkii / @bokkii7

03/30/2019 at 02:58AM

23
#155 - Louie / @LouieShepDog

03/31/2019 at 08:05PM

23
#156 - kodemaan / @kodemaan

04/02/2019 at 08:48PM

23
#157 - Dylan / @helloasdff

04/03/2019 at 01:34PM

23
#158 - Loنtre / @OtterPy

04/05/2019 at 07:57AM

23
#159 - Remy Oudemans / @OudemansRemy

04/06/2019 at 10:01AM

23
#160 - Mikhail K. / @_mkl_k

04/06/2019 at 08:47PM

23
#161 - Wilson Chang / @ckwojai

04/09/2019 at 04:31AM

23
#162 - Bob_V / @Bob_V

04/09/2019 at 11:08AM

23
#163 - かなたBtB / @KanataBtB

04/09/2019 at 01:03PM

23
#164 - Leo Huang / @cbreezier

04/09/2019 at 10:51PM

23
#165 - Malo Bourgon / @m_bourgon

04/09/2019 at 11:50PM

23
#166 - alekfed / @alek_fed

04/14/2019 at 09:10AM

23
#167 - Bruno Ely / @brunoely

04/16/2019 at 10:46PM

23
#168 - Potato King / @j0hnth3ripp3r

04/18/2019 at 10:13AM

23
#169 - Darren Weston / @dazWestonUK

04/19/2019 at 01:52PM

23
#170 - 波波 / @sbob87

04/24/2019 at 09:06AM

23
#171 - BenL / @BenL86660733

04/25/2019 at 04:33PM

23
#172 - Kai.Li / @KaiLi19

04/27/2019 at 05:26AM

23
#173 - Marcin Radomski / @_dextero

05/01/2019 at 07:42AM

23
#174 - ow / @ow34480012

05/02/2019 at 09:45AM

23
#175 - James Stidard / @JamesStidard

05/02/2019 at 09:04PM

23
#176 - hoge2341836 / @RootShunsuke

05/03/2019 at 02:08AM

23
#177 - jyuxian / @jyuxian

05/04/2019 at 05:24AM

23
#178 - Sebastien Nicoud / @sebnukem

05/05/2019 at 01:07AM

23
#179 - tottulf / @tottulf

05/05/2019 at 06:58PM

23
#180 - /d͡ʒuˈzɛp.pe/ / @gcapizzi

05/07/2019 at 11:23AM