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

673 active golfers, 2783 entries

Leaderboard (lowest score wins):
24
#301 - Nicolas Daval / @ndaval

04/07/2019 at 01:27PM

24
#302 - Mike Harris / @MikeMJHarris

04/09/2019 at 02:56PM

24
#303 - Petro Тrouq / @zulolosi

04/12/2019 at 08:10AM

24
#304 - TimMcGuire / @mcguire

04/14/2019 at 02:30PM

24
#305 - Iván Burgos / @Navo_Tivetano

04/17/2019 at 02:45PM

24
#306 - Rand Omperson / @197258444

04/17/2019 at 05:21PM

24
#307 - Tucker Hayden / @TuckNRollio

04/17/2019 at 06:09PM

24
#308 - qisnotnq / @qisnotnq

04/19/2019 at 10:17PM

24
#309 - Roger Bongers / @RogerBongers

04/28/2019 at 02:30PM

24
#310 - William Snyders / @iam2391212

05/02/2019 at 07:04PM

24
#311 - Yann / @yannstad

05/02/2019 at 07:59PM

24
#312 - Owen Campbell / @opcampbell

05/03/2019 at 02:18PM

24
#313 - Koo Zhengqun / @zhengqunkoo

05/04/2019 at 02:51AM

24
#314 - Ondřej Soukup / @goodQuestion_or

05/04/2019 at 09:52AM

24
#315 - Arno / @arnoxmp

05/09/2019 at 09:19AM

24
#316 - Felipe Monteiro / @monteiro_fp

05/09/2019 at 02:44PM

24
#317 - dehodson / @dehodson

05/10/2019 at 05:20PM

24
#318 - zoozers / @zoozers

05/12/2019 at 05:17AM

24
#319 - Amila Pasan / @amilapsn

05/12/2019 at 04:34PM

24
#320 - Nico W. / @AirlessAtmo

05/12/2019 at 07:20PM

24
#321 - TheMagzuz / @DamMarkus

05/16/2019 at 05:47PM

24
#322 - Caleb Rollins / @CalebRollins1

05/16/2019 at 07:49PM

24
#323 - Nick Yeow / @nickyeow

05/21/2019 at 04:47PM

24
#324 - Martijn Brekelmans / @Azeirah

05/24/2019 at 08:25PM

24
#325 - throw away / @f44lyf

05/29/2019 at 03:55AM

24
#326 - sitadivon / @sitadivon1

05/29/2019 at 06:15AM

24
#327 - golf_throwaway / @GolfThrowaway

06/04/2019 at 06:11PM

24
#328 - Shyam Padia / @thegeektherapy

06/07/2019 at 10:30PM

24
#329 - Petter Wahlman / @badeip

06/08/2019 at 10:53AM

24
#330 - Clarence Cheong / @IBrightStudioI

06/08/2019 at 02:02PM