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

871 active golfers, 3582 entries

Leaderboard (lowest score wins):
24
#391 - qisnotnq / @qisnotnq

04/19/2019 at 10:17PM

24
#392 - Roger Bongers / @RogerBongers

04/28/2019 at 02:30PM

24
#393 - William Snyders / @iam2391212

05/02/2019 at 07:04PM

24
#394 - Yann / @yannstad

05/02/2019 at 07:59PM

24
#395 - Owen Campbell / @opcampbell

05/03/2019 at 02:18PM

24
#396 - Koo Zhengqun / @zhengqunkoo

05/04/2019 at 02:51AM

24
#397 - Ondřej Soukup / @goodQuestion_or

05/04/2019 at 09:52AM

24
#398 - Arno / @arnoxmp

05/09/2019 at 09:19AM

24
#399 - Felipe Monteiro / @monteiro_fp

05/09/2019 at 02:44PM

24
#400 - dehodson / @dehodson

05/10/2019 at 05:20PM

24
#401 - zoozers / @zoozers

05/12/2019 at 05:17AM

24
#402 - Amila Pasan / @amilapsn

05/12/2019 at 04:34PM

24
#403 - Nico W. / @AirlessAtmo

05/12/2019 at 07:20PM

24
#404 - TheMagzuz / @DamMarkus

05/16/2019 at 05:47PM

24
#405 - Caleb Rollins / @CalebRollins1

05/16/2019 at 07:49PM

24
#406 - Nick Yeow / @nickyeow

05/21/2019 at 04:47PM

24
#407 - Martijn Brekelmans / @Azeirah

05/24/2019 at 08:25PM

24
#408 - throw away / @f44lyf

05/29/2019 at 03:55AM

24
#409 - sitadivon / @sitadivon1

05/29/2019 at 06:15AM

24
#410 - golf_throwaway / @GolfThrowaway

06/04/2019 at 06:11PM

24
#411 - Shyam Padia / @thegeektherapy

06/07/2019 at 10:30PM

24
#412 - Petter Wahlman / @badeip

06/08/2019 at 10:53AM

24
#413 - Clarence Cheong / @IBrightStudioI

06/08/2019 at 02:02PM

24
#414 - たぬぽん / @eJYwMbymauWKF4B

06/10/2019 at 09:54PM

24
#415 - zealotrush / @zealotrush

06/14/2019 at 05:47AM

24
#416 - albalitz / @_albalitz

06/20/2019 at 04:13PM

24
#417 - Sjoerd Thijsse / @SjoerdThijsse

06/25/2019 at 06:02PM

24
#418 - Thomas / @TBonnin

07/01/2019 at 08:27AM

24
#419 - せいほう / @FICSQF

07/03/2019 at 03:27AM

24
#420 - Riley Shea / @RShea001

07/07/2019 at 05:39AM