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

862 active golfers, 3565 entries

Leaderboard (lowest score wins):
30
#601 - 임하정 / @m9XhkZL9XpMgt47

03/10/2019 at 07:27AM

30
#602 - Sarang Khim / @sarang_khim

03/11/2019 at 02:27AM

30
#603 - Alex Mihov / @AlexMihov

03/21/2019 at 10:49AM

30
#604 - Joseph A Shalabi / @JosephShalabi

04/03/2019 at 04:28PM

30
#605 - Slava Kim / @imslavko

04/11/2019 at 09:52PM

30
#606 - EarthToAbigail / @EarthAbigail

04/14/2019 at 03:57PM

30
#607 - tapio / @gncnaxb

04/18/2019 at 12:01PM

30
#608 - Sam Miller / @sam_miller93

04/24/2019 at 01:50PM

30
#609 - Mekhi Thomas / @ReelGreenRanger

04/24/2019 at 02:23PM

30
#610 - Andy / @_andys8

04/27/2019 at 03:50PM

30
#611 - りょ / @ryoo141

05/08/2019 at 01:15PM

30
#612 - bsjd / @bsjd

05/15/2019 at 08:46PM

30
#613 - Daniel Moi / @DM1199

05/31/2019 at 01:48AM

30
#614 - Juraj Skvarla / @Athlet

06/10/2019 at 11:41AM

30
#615 - Hog of the Forsaken / @leonrobbins

06/27/2019 at 05:52PM

30
#616 - Adam Pollack / @apollack11

07/12/2019 at 10:54PM

30
#617 - flummox / @flummox16

08/02/2019 at 08:32PM

30
#618 - Alberto Pose / @thepose

08/17/2019 at 04:15PM

30
#619 - Alexander Dikelsky / @ADikelsky

08/19/2019 at 07:23PM

30
#620 - Raymar Monte / @RaymarMonte

08/25/2019 at 02:19PM

30
#621 - Urbanovics Péter / @UrbanovicsP

08/29/2019 at 08:37AM

30
#622 - Jose Soto / @JoseCanHelp

09/09/2019 at 01:40AM

31
#623 - Oskari Virtanen / @osvirtan

02/25/2019 at 06:06PM

31
#624 - Samantha Ramsey / @Samanth12934312

03/01/2019 at 04:53AM

31
#625 - Josh Cohen / @joshhostels

03/03/2019 at 12:13AM

31
#626 - DanSnow / @dododavid006

03/06/2019 at 02:08AM

31
#627 - Unidentified Person / @tripleaperson

03/06/2019 at 07:47AM

31
#628 - @coon@chaos.social / @coon_42

03/08/2019 at 02:24AM

31
#629 - Deepstack / @deepstackux

03/14/2019 at 04:52PM

31
#630 - The Joe / @computerjoe708

03/17/2019 at 03:54PM