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

1230 active golfers, 5153 entries

Leaderboard (lowest score wins):
24
#601 - Devistator / @Devistator5

10/08/2019 at 07:25AM

24
#602 - Walker Boh / @walker_boh

10/24/2019 at 03:26PM

24
#603 - Scott Taylor / @scott11X8

10/25/2019 at 12:23AM

24
#604 - vimgolfer / @vimgolfer9

11/03/2019 at 12:50PM

24
#605 - Ebi / @ehan6

11/08/2019 at 09:16PM

24
#606 - aaa / @aaa09223304

11/21/2019 at 06:21AM

24
#607 - zigford / @zigford_org

12/01/2019 at 12:29PM

24
#608 - およねさん / @yuukikun31

12/01/2019 at 02:40PM

24
#609 - 煮沸的白開水 / @season_303030

12/01/2019 at 03:44PM

24
#610 - Jason Crowley / @jcrowle5

12/06/2019 at 09:49PM

24
#611 - Ageless O₂ Absorber / @dr_barnowl

12/16/2019 at 10:36PM

24
#612 - Bennett / @bennettbackward

12/26/2019 at 02:46AM

24
#613 - Кирилл Перехода / @drevnii_alex

12/26/2019 at 12:20PM

24
#614 - Anton Kriese / @AntonKriese

01/02/2020 at 12:05AM

24
#615 - John Kevin Estrella / @kevsestrella

01/07/2020 at 01:58PM

24
#616 - victor tortolero / @MightyPenguinV

01/21/2020 at 03:19PM

24
#617 - Brent Westbrook / @westbrook_brent

01/21/2020 at 10:31PM

24
#618 - cardoiltardo / @cardoiltardo

02/04/2020 at 04:17PM

24
#619 - nico S / @der_nico_93

02/05/2020 at 12:45PM

24
#620 - Falafel Palapel / @falafelpalapel

02/11/2020 at 06:34PM

24
#621 - jackjsk / @jackjsk1

02/12/2020 at 05:18AM

24
#622 - Wandering_startupper / @Hlushchenko_VL

02/15/2020 at 06:54PM

24
#623 - perTheGolfer / @GolferPer

02/18/2020 at 08:46AM

24
#624 - Ticktockrobotsnot99 / @akashrrao

02/19/2020 at 04:23AM

24
#625 - Marius Jurgelenas / @MarenasLT

02/21/2020 at 03:09PM

25
#626 - mnx / @mnxx

02/27/2019 at 04:02PM

25
#627 - Cameron Fowler / @camfowler

03/19/2019 at 02:45AM

25
#628 - micchie ʕ•ᴥ•ʔ / @micchiebear

03/26/2019 at 11:39AM

25
#629 - Hu Yingcong / @HYingcong

04/02/2019 at 01:26AM

25
#630 - Timothé Tizio-Menut / @TimTizio

04/11/2019 at 02:03PM