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

673 active golfers, 2783 entries

Leaderboard (lowest score wins):
22
#151 - Mihai Crăiță / @mihai_craita

03/04/2019 at 10:41PM

22
#152 - No Not / @NoNot44894988

03/10/2019 at 10:06AM

22
#153 - Animeville Horror / @InMyExperience

03/11/2019 at 02:20AM

22
#154 - Vimfiz / @vimfiz

03/22/2019 at 12:45AM

22
#155 - Brad Daniels / @JBradDaniels

03/27/2019 at 03:14AM

22
#156 - Lincoln / @chalcidfly

04/02/2019 at 08:46PM

22
#157 - Alan Barnett / @alan23394

04/03/2019 at 08:53PM

22
#158 - Pratik / @prathik_t

04/04/2019 at 06:08AM

22
#159 - Chris Robson / @cjrobson5

04/08/2019 at 11:55AM

22
#160 - zaperrer / @zaperrer

04/11/2019 at 06:21PM

22
#161 - Mac Goever / @MacGoever

04/12/2019 at 08:25AM

22
#162 - 出望和ましゅう / @matvore

04/16/2019 at 12:35PM

22
#163 - 이종혁 / @BluePaisa

04/16/2019 at 02:10PM

22
#164 - Gitsnik / @dracyrys

04/17/2019 at 01:52PM

22
#165 - Andy Balaam / @andybalaam

05/03/2019 at 03:36PM

22
#166 - Manos Koutselakis / @koutselakis_m

05/05/2019 at 12:44AM

22
#167 - Nolen Royalty / @NolenRoyalty

05/12/2019 at 05:25PM

22
#168 - alexandrasou / @alexandrasou2

05/22/2019 at 11:12PM

22
#169 - aggums / @touhoueurobeat

05/24/2019 at 03:44PM

22
#170 - Kevin Kuchta / @kkuchta

05/29/2019 at 04:31PM

22
#171 - Hao-Ting Wang / @HaoTingW713

06/20/2019 at 04:11PM

22
#172 - yovimaster / @yovimaster

06/21/2019 at 08:41AM

22
#173 - Marcin Radomski / @_dextero

06/24/2019 at 06:39PM

22
#174 - garry quested / @GQuested

07/03/2019 at 02:19PM

22
#175 - Igor Yalovoy / @ylv_io

07/09/2019 at 08:59PM

22
#176 - tschoschi / @Todesshnizzle

07/10/2019 at 11:35AM

22
#177 - Kvazhir / @kvazhir

07/10/2019 at 03:17PM

22
#178 - Denis / @4NNTGudvin

07/11/2019 at 09:47AM

22
#179 - ^spew$ / @spew79241369

07/17/2019 at 01:13AM

23
#180 - John Braxler / @braxler

02/25/2019 at 09:41PM