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

676 active golfers, 2798 entries

Leaderboard (lowest score wins):
35
#571 - Snarf / @desnarf

07/09/2019 at 02:10AM

36
#572 - Kevin Tindall / @kevinkjt2000

03/08/2019 at 01:20AM

36
#573 - Christopher Fujino / @chrisfujino

03/08/2019 at 02:58AM

36
#574 - Juan Manuel Fresia / @fresiajm

03/17/2019 at 03:44AM

36
#575 - Herman Stavelin / @HsBruker

04/22/2019 at 07:55PM

36
#576 - Dan Loewenherz / @dwlz

04/26/2019 at 04:06PM

36
#577 - koern82 / @koern82

06/04/2019 at 08:36AM

36
#578 - Furopure / @furopure

06/19/2019 at 03:50AM

36
#579 - Thiago Preischadt / @TPreischadt

07/10/2019 at 02:04AM

37
#580 - Tom Szyszko / @DaPolishMafia01

03/15/2019 at 07:26PM

37
#581 - Alex / @thekyz

04/17/2019 at 03:22PM

37
#582 - manhquan / @manhquan110

05/08/2019 at 03:58PM

37
#583 - tllilleh / @tllilleh

05/14/2019 at 08:56PM

37
#584 - ./yamada / @yamadad_

06/19/2019 at 05:21AM

38
#585 - Thomas Surlykke / @THSurlykke

03/08/2019 at 10:19AM

38
#586 - venkatakrishnan / @venkatk_

04/12/2019 at 05:53AM

39
#587 - 🎈 / @mainshayne233

03/04/2019 at 01:21PM

39
#588 - Ashley Harvey / @ashleyharvey87

03/07/2019 at 08:53PM

39
#589 - Kyle Safran / @kylesafran

03/11/2019 at 04:53PM

39
#590 - Josh Callender / @Saponifi3d

03/14/2019 at 09:03PM

39
#591 - 拉书单 / @NaapN2

03/19/2019 at 10:48AM

39
#592 - Andreas Kollaros / @akdeveloper

04/06/2019 at 09:13PM

39
#593 - Tony Buranzon / @therealTbunz

04/24/2019 at 06:27PM

39
#594 - Justus Thane / @justusthane

05/09/2019 at 04:21PM

39
#595 - Andreas Norrstig / @ANorrstig

05/16/2019 at 07:58PM

39
#596 - wsg / @wsg31986835

07/04/2019 at 02:31PM

40
#597 - Paul Slife / @pslife98

03/07/2019 at 01:26AM

40
#598 - exqt / @_exqt_

03/11/2019 at 10:14AM

40
#599 - Brandon Adams / @emidln

03/20/2019 at 04:08PM

40
#600 - zkunsang / @zkunsang

04/14/2019 at 10:05AM