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

1511 active golfers, 6369 entries

Leaderboard (lowest score wins):
21
#301 - Oleg / @colega

03/21/2020 at 08:39PM

21
#302 - Marco / @Marco24456514

03/21/2020 at 09:24PM

21
#303 - Yan Xue / @_yxue

03/21/2020 at 09:57PM

21
#304 - Robberechts Arne / @ArneRobberechts

03/22/2020 at 02:19PM

21
#305 - Rodrigo V. Lopes / @rodvlopes

03/22/2020 at 08:09PM

21
#306 - koyumeishi / @koyumeishi_

03/27/2020 at 08:01PM

21
#307 - relastle / @relastle

03/29/2020 at 06:05AM

21
#308 - Mats Faugli / @matsfaugli

03/29/2020 at 09:15PM

21
#309 - Moatvald / @moatvald

04/11/2020 at 02:39PM

21
#310 - edvrds / @edvrds

04/12/2020 at 03:49PM

21
#311 - Sikker Rosendal / @srosendaldk

04/17/2020 at 12:51PM

21
#312 - まつーら / @uikbl

04/18/2020 at 07:28AM

21
#313 - Stian Selnes / @stianse

04/25/2020 at 03:50PM

21
#314 - John Sumner / @rjsumner

04/26/2020 at 03:15PM

21
#315 - Sylvain Leroux / Yes, I Know IT ! / @Yes_I_Know_IT

04/27/2020 at 10:04PM

21
#316 - Arthur Goodman / @ArthurGoodman3

04/29/2020 at 05:32PM

21
#317 - Vinh Vu / @vinhhv94

05/02/2020 at 07:34AM

21
#318 - Samuel Vaiter / @vaiter

05/05/2020 at 02:31PM

21
#319 - MPDR / @MPDR200011

05/05/2020 at 03:00PM

21
#320 - Bspammer / @Bspammer

05/07/2020 at 12:26AM

21
#321 - Chen Ting Huang / @ChenTingHuang1

05/09/2020 at 08:56AM

21
#322 - WM / @WM97222391

05/10/2020 at 01:15AM

21
#323 - haipeng li / @HaipengLie

05/10/2020 at 02:01AM

21
#324 - io / @iovis9

05/11/2020 at 05:37AM

21
#325 - Kevin Keefe / @KevinKeefe5

05/14/2020 at 07:06AM

21
#326 - Sven Kõiv / @KoivSven

05/17/2020 at 09:23AM

21
#327 - Andreas Buhr / @andreas_buhr

05/21/2020 at 01:34PM

21
#328 - Roland Crosby / @roooooland

05/21/2020 at 09:10PM

21
#329 - 于吉星 / @fishermryn

05/22/2020 at 09:18AM

21
#330 - Tapan Karnik / @TKarnik

05/22/2020 at 05:27PM