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

1022 active golfers, 4255 entries

Leaderboard (lowest score wins):
26
#571 - Matti Sairanen / @MattiSairanen

08/05/2019 at 08:21AM

26
#572 - majestic sloth / @SamLlama

08/08/2019 at 06:00AM

26
#573 - monaqa / @mo_naqa

08/20/2019 at 02:47PM

26
#574 - Charlie OConor / @charlieoconor

08/23/2019 at 07:40PM

26
#575 - José / @AngelGaldamez

08/25/2019 at 04:27AM

26
#576 - birdybirdbird / @birdybirdbird13

08/27/2019 at 01:12PM

26
#577 - ian / @ianbrault

08/29/2019 at 11:17PM

26
#578 - Gourav Chawla / @TechDeviant

08/30/2019 at 03:51AM

26
#579 - jonathangai / @jonathangai1

09/01/2019 at 09:22PM

26
#580 - Alexander L. / @Lexol4s

09/09/2019 at 04:00PM

26
#581 - Thomas Edlich / @grumpybavarian

09/27/2019 at 08:39PM

26
#582 - Jonathan Yong / @yongrenjie

10/02/2019 at 08:53AM

26
#583 - tuck cursed on rerB / @19emtuck

10/13/2019 at 04:57PM

26
#584 - sawtag / @sawtag1

10/30/2019 at 10:27AM

26
#585 - Mark Brody / @_markbrody

11/02/2019 at 06:44PM

26
#586 - Eliseo / @Eliseohh_A

11/09/2019 at 07:00AM

27
#587 - Mauricio Ariza / @_hell_spawn

02/25/2019 at 10:22PM

27
#588 - əidolon / @eid_lon

02/27/2019 at 10:49PM

27
#589 - BlackCap / @BlackCapCoder

02/28/2019 at 06:16PM

27
#590 - Oddwel / @Oddwel

03/01/2019 at 01:03PM

27
#591 - adir ohayon / @AdirKip

03/02/2019 at 01:26PM

27
#592 - vince / @vincentvangott

03/02/2019 at 11:01PM

27
#593 - Alexander Popov / @Alexand01782341

03/04/2019 at 03:01PM

27
#594 - Simon Rycroft / @sirycroftmusic

03/08/2019 at 04:22PM

27
#595 - Patrick Lavin / @LavinComputes

03/12/2019 at 10:13PM

27
#596 - Lambert Green / @Lambert_Green

03/19/2019 at 06:22PM

27
#597 - Shahin Mohammad Sali / @shaahiinms

03/25/2019 at 08:40PM

27
#598 - Ivan Krukov / @i_krukov

04/04/2019 at 11:14PM

27
#599 - Banner B. Schafer / @BannerBSchafer

04/08/2019 at 03:13AM

27
#600 - Andrei Gasparovici / @agasparovici

04/09/2019 at 06:42AM