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):
23
#241 - Sebastien Nicoud / @sebnukem

05/05/2019 at 01:07AM

23
#242 - tottulf / @tottulf

05/05/2019 at 06:58PM

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

05/07/2019 at 11:23AM

23
#244 - ippachi / @ippachi1218

05/07/2019 at 03:29PM

23
#245 - Kasper Siig / @knsiig

05/07/2019 at 04:19PM

23
#246 - Alex Norman / @Aarleks

05/08/2019 at 11:44AM

23
#247 - Jairo Suarez / @xyos

05/08/2019 at 03:15PM

23
#248 - test / @test35595941

05/09/2019 at 03:07AM

23
#249 - heppen / @heppen_He

05/10/2019 at 08:59AM

23
#250 - Przemek Kurek / @PrzemekKurek

05/11/2019 at 09:20PM

23
#251 - Fabrizio Perria / @FPerria

05/12/2019 at 07:26AM

23
#252 - regsdev / @regsdev

05/12/2019 at 09:07PM

23
#253 - ゆきみ / @edp02

05/12/2019 at 11:14PM

23
#254 - arsi arola / @mos_kiitto

05/15/2019 at 11:56AM

23
#255 - Damian Rodriguez / @damianrr

05/16/2019 at 06:17PM

23
#256 - Coruja Queridinha / @miriamretka

05/19/2019 at 12:29PM

23
#257 - tynanguerra / @tynanguerra

05/20/2019 at 07:35PM

23
#258 - Joe Reddington / @joereddington

05/21/2019 at 03:23PM

23
#259 - Kim bong yeon / @socoolbear

05/24/2019 at 12:37PM

23
#260 - Théo / @Theodnls

05/25/2019 at 11:59PM

23
#261 - Lie Ryan / @lieryan

05/31/2019 at 09:04AM

23
#262 - mkaminaga / @mkmng3

06/01/2019 at 02:28AM

23
#263 - aleix / @amg_fish

06/01/2019 at 04:20AM

23
#264 - Jonáš Šerých / @serycjon

06/03/2019 at 03:40PM

23
#265 - Kris Ezra / @kris_ezra

06/06/2019 at 04:32AM

23
#266 - deurzen / @devrzen

06/06/2019 at 10:38AM

23
#267 - Ben M / @Sweet_Scientist

06/06/2019 at 11:36AM

23
#268 - Will Durney / @WillDurney

06/06/2019 at 08:49PM

23
#269 - Alex Yu / @sixianyu

06/07/2019 at 06:35AM

23
#270 - summingbest / @summingbest

06/10/2019 at 03:45AM