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

1865 active golfers, 7828 entries

Leaderboard (lowest score wins):
23
#751 - Bob / @Bob37174065

06/01/2020 at 01:37PM

23
#752 - smlbrngr / @smlbrngr

06/15/2020 at 04:03PM

23
#753 - Jeff Cui / @jeffacce

06/18/2020 at 07:14AM

23
#754 - もりを / @morio_prog

06/20/2020 at 03:32AM

23
#755 - James Elson / @JamesElson_RL

06/25/2020 at 10:58PM

23
#756 - Ming Dai / @MingDai2

06/29/2020 at 10:15PM

23
#757 - Mitchell Horning / @HorningMitchell

07/01/2020 at 12:48AM

23
#758 - JLObject / @powful_panda

07/01/2020 at 02:42PM

23
#759 - Edgar Domingues / @edgar_domingues

07/02/2020 at 08:15AM

23
#760 - Brennan Barker / @BrennanJBarker

07/04/2020 at 11:38AM

23
#761 - David / @imdavidhwang

07/06/2020 at 11:06PM

23
#762 - rl5day / @rl5day

07/07/2020 at 04:40AM

23
#763 - Lucas Moon / @LucasMo01299826

07/07/2020 at 05:07AM

23
#764 - Loric Brevet / @lobre8

07/10/2020 at 08:28AM

23
#765 - Jason / @jason_eveleth

07/23/2020 at 06:36AM

23
#766 - Mislav Vuletić / @MasterGeeMedo

07/26/2020 at 01:04PM

23
#767 - Du Phan / @fehiepsi

08/08/2020 at 03:26PM

23
#768 - Xaver Fleer / @XaverFleer

08/08/2020 at 04:52PM

23
#769 - Kazuki / @algo__n

08/10/2020 at 04:44AM

23
#770 - Matthias / @Matthia78044730

08/10/2020 at 06:06PM

23
#771 - gfe fag / @FagGfe

08/19/2020 at 02:25PM

23
#772 - Szymon Naskręcki / @snaskrecki

08/20/2020 at 08:03AM

23
#773 - Josh Kermond / @Kermond

08/23/2020 at 05:40AM

23
#774 - Matthew Blode / @BlodeMatthew

08/26/2020 at 07:40AM

23
#775 - 王有铭 / @wangyouming1209

09/03/2020 at 04:28AM

23
#776 - Christian Mösl / @ChristianMoesl

09/07/2020 at 09:35PM

23
#777 - 刘宏亮 / @AkeyCoy

09/08/2020 at 04:08AM

23
#778 - Florian Duraffourg / @fduraffourg

09/23/2020 at 08:27AM

23
#779 - mstronam / @mstronam

09/30/2020 at 04:26PM

23
#780 - lamtt77 / @lamtt77

10/07/2020 at 08:06AM