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

858 active golfers, 3550 entries

Leaderboard (lowest score wins):
21
#121 - Sam Doiron / @Conlectus

06/23/2019 at 12:57AM

21
#122 - Aurel / @AurelienFebvre

06/25/2019 at 07:29PM

21
#123 - Matt / @m4tty1c3

06/25/2019 at 11:24PM

21
#124 - Johan Le Bray / @johanlebray

06/26/2019 at 12:46PM

21
#125 - Nathan Knox / @the_nathan_knox

06/26/2019 at 02:49PM

21
#126 - Sadot Cortés / @sadotcorts

06/28/2019 at 04:29AM

21
#127 - chris / @chris_linchen

06/28/2019 at 06:55AM

21
#128 - Johnny footlight / @JFootlight

06/28/2019 at 06:16PM

21
#129 - Test Account / @testycc

06/29/2019 at 11:31AM

21
#130 - Dan Yeaw / @danyeaw

06/30/2019 at 02:25AM

21
#131 - Tom Dalziel / @dalziel_tom

06/30/2019 at 10:58PM

21
#132 - Scott Schlesier / @sschlesier

07/01/2019 at 06:27AM

21
#133 - Sergey Ryabko / @RyabkoSergey

07/01/2019 at 04:57PM

21
#134 - Wizard_KumaChan / @Wizard_KumaChan

07/04/2019 at 10:09AM

21
#135 - as-night / @asnight2

07/04/2019 at 06:45PM

21
#136 - ixf / @ixfdv

07/05/2019 at 05:47PM

21
#137 - Chester Yap / @Chest_ErYap

07/07/2019 at 07:11PM

21
#138 - c0llision / @sh3llcode

07/09/2019 at 03:08PM

21
#139 - aurelian ardeleanu / @inquarto

07/10/2019 at 08:06PM

21
#140 - Korgan / @Korgan36725554

07/13/2019 at 04:35PM

21
#141 - Neil Struthers / @struthersneil

07/15/2019 at 12:29PM

21
#142 - Malcolm Sharpe / @blueblimpms

07/16/2019 at 01:58AM

21
#143 - Adam Katz / @AdamKat01277576

07/16/2019 at 06:37AM

21
#144 - taka / @takaoutputblog

07/16/2019 at 02:10PM

21
#145 - ゴエモン(俗稱).born / @_toku_san

07/17/2019 at 07:24AM

21
#146 - James Raubenheimer / @jamzrob

07/18/2019 at 08:28PM

21
#147 - Hxhxhrra / @hxhxhrra

07/20/2019 at 06:36PM

21
#148 - Clint Caudle / @ClintCaudle

07/22/2019 at 03:44AM

21
#149 - Joe Fahnestock🌵 / @Joecupojoe

07/22/2019 at 07:07PM

21
#150 - Rasmus Öhman Bruno / @rasmohman

07/23/2019 at 11:48AM