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

1881 active golfers, 7916 entries

Leaderboard (lowest score wins):
21
#301 - Yan Xue / @_yxue

03/21/2020 at 09:57PM

21
#302 - Robberechts Arne / @ArneRobberechts

03/22/2020 at 02:19PM

21
#303 - Rodrigo V. Lopes / @rodvlopes

03/22/2020 at 08:09PM

21
#304 - koyumeishi / @koyumeishi_

03/27/2020 at 08:01PM

21
#305 - relastle / @relastle

03/29/2020 at 06:05AM

21
#306 - Mats Faugli / @matsfaugli

03/29/2020 at 09:15PM

21
#307 - Moatvald / @moatvald

04/11/2020 at 02:39PM

21
#308 - edvrds / @edvrds

04/12/2020 at 03:49PM

21
#309 - Sikker Rosendal / @srosendaldk

04/17/2020 at 12:51PM

21
#310 - まつーら / @uikbl

04/18/2020 at 07:28AM

21
#311 - Stian Selnes / @stianse

04/25/2020 at 03:50PM

21
#312 - John Sumner / @rjsumner

04/26/2020 at 03:15PM

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

04/27/2020 at 10:04PM

21
#314 - Arthur Goodman / @ArthurGoodman3

04/29/2020 at 05:32PM

21
#315 - Vinh Vu / @vinhhv94

05/02/2020 at 07:34AM

21
#316 - Samuel Vaiter / @vaiter

05/05/2020 at 02:31PM

21
#317 - MPDR / @MPDR200011

05/05/2020 at 03:00PM

21
#318 - Bspammer / @Bspammer

05/07/2020 at 12:26AM

21
#319 - Chen Ting Huang / @ChenTingHuang1

05/09/2020 at 08:56AM

21
#320 - WM / @WM97222391

05/10/2020 at 01:15AM

21
#321 - haipeng li / @HaipengLie

05/10/2020 at 02:01AM

21
#322 - io / @iovis9

05/11/2020 at 05:37AM

21
#323 - Kevin Keefe / @KevinKeefe5

05/14/2020 at 07:06AM

21
#324 - Sven Kõiv / @KoivSven

05/17/2020 at 09:23AM

21
#325 - Andreas Buhr / @andreas_buhr

05/21/2020 at 01:34PM

21
#326 - Roland Crosby / @roooooland

05/21/2020 at 09:10PM

21
#327 - 于吉星 / @fishermryn

05/22/2020 at 09:18AM

21
#328 - Tapan Karnik / @TKarnik

05/22/2020 at 05:27PM

21
#329 - Dirty Harry / @TateDirty

05/25/2020 at 05:42PM

21
#330 - chocolate / @chocola81394123

05/27/2020 at 09:45PM