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):
23
#751 - David / @imdavidhwang

07/06/2020 at 11:06PM

23
#752 - rl5day / @rl5day

07/07/2020 at 04:40AM

23
#753 - Lucas Moon / @LucasMo01299826

07/07/2020 at 05:07AM

23
#754 - Loric Brevet / @lobre8

07/10/2020 at 08:28AM

23
#755 - Jason / @jason_eveleth

07/23/2020 at 06:36AM

23
#756 - Mislav Vuletić / @MasterGeeMedo

07/26/2020 at 01:04PM

23
#757 - Du Phan / @fehiepsi

08/08/2020 at 03:26PM

23
#758 - Xaver Fleer / @XaverFleer

08/08/2020 at 04:52PM

23
#759 - Kazuki / @algo__n

08/10/2020 at 04:44AM

23
#760 - Matthias / @Matthia78044730

08/10/2020 at 06:06PM

23
#761 - gfe fag / @FagGfe

08/19/2020 at 02:25PM

23
#762 - Szymon Naskręcki / @snaskrecki

08/20/2020 at 08:03AM

23
#763 - Josh Kermond / @Kermond

08/23/2020 at 05:40AM

23
#764 - Matthew Blode / @BlodeMatthew

08/26/2020 at 07:40AM

23
#765 - 王有铭 / @wangyouming1209

09/03/2020 at 04:28AM

23
#766 - Christian Mösl / @ChristianMoesl

09/07/2020 at 09:35PM

23
#767 - 刘宏亮 / @CoyAkey

09/08/2020 at 04:08AM

23
#768 - Florian Duraffourg / @fduraffourg

09/23/2020 at 08:27AM

23
#769 - mstronam / @mstronam

09/30/2020 at 04:26PM

23
#770 - lamtt77 / @lamtt77

10/07/2020 at 08:06AM

23
#771 - Kieron Browne / @KieronBrowne1

10/07/2020 at 04:46PM

23
#772 - I made a video game ✨ / @startresse

10/07/2020 at 07:51PM

23
#773 - Herman Stavelin / @HsBruker

10/16/2020 at 11:32AM

23
#774 - versa / @versa51547979

10/16/2020 at 08:14PM

23
#775 - Leo Winters / @LeoPWinters

10/19/2020 at 05:24PM

23
#776 - Leland Paul Kusmer / @lelandpaul

10/20/2020 at 02:44PM

23
#777 - Jakub Wagner / @Jakub1019

10/22/2020 at 05:21PM

23
#778 - dadams2 / @dadams217

10/31/2020 at 05:21AM

23
#779 - Zack Freedman / @freedman_zack

11/08/2020 at 06:30PM

23
#780 - Jacques Donnelly / @Donnll

11/09/2020 at 03:12PM