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

1310 active golfers, 5493 entries

Leaderboard (lowest score wins):
24
#631 - EL KESRI Othmane / @KesriOthmane

09/16/2019 at 01:12PM

24
#632 - Phrasendroschke / @phrasendroschke

09/18/2019 at 01:49PM

24
#633 - Pogues 123 / @123Pogues

09/18/2019 at 05:21PM

24
#634 - yhiraki / @coffexpr

09/25/2019 at 10:16AM

24
#635 - lofoneax / @lofoneax

09/25/2019 at 08:59PM

24
#636 - Trapier Marshall / @aoeuser

09/26/2019 at 01:59AM

24
#637 - Josefina Alconada / @jochiAlconada

10/03/2019 at 10:02AM

24
#638 - Devistator / @Devistator5

10/08/2019 at 07:25AM

24
#639 - Walker Boh / @walker_boh

10/24/2019 at 03:26PM

24
#640 - Scott Taylor / @scott11X8

10/25/2019 at 12:23AM

24
#641 - vimgolfer / @vimgolfer9

11/03/2019 at 12:50PM

24
#642 - Ebi / @ehan6

11/08/2019 at 09:16PM

24
#643 - aaa / @aaa09223304

11/21/2019 at 06:21AM

24
#644 - zigford / @zigford_org

12/01/2019 at 12:29PM

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

12/01/2019 at 02:40PM

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

12/01/2019 at 03:44PM

24
#647 - Jason Crowley / @jcrowle5

12/06/2019 at 09:49PM

24
#648 - Ageless O₂ Absorber / @dr_barnowl

12/16/2019 at 10:36PM

24
#649 - Bennett / @bennettbackward

12/26/2019 at 02:46AM

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

12/26/2019 at 12:20PM

24
#651 - Anton Kriese / @AntonKriese

01/02/2020 at 12:05AM

24
#652 - John Kevin Estrella / @kevsestrella

01/07/2020 at 01:58PM

24
#653 - victor tortolero / @MightyPenguinV

01/21/2020 at 03:19PM

24
#654 - Brent Westbrook / @westbrook_brent

01/21/2020 at 10:31PM

24
#655 - cardoiltardo / @cardoiltardo

02/04/2020 at 04:17PM

24
#656 - nico S / @der_nico_93

02/05/2020 at 12:45PM

24
#657 - Falafel Palapel / @falafelpalapel

02/11/2020 at 06:34PM

24
#658 - jackjsk / @jackjsk1

02/12/2020 at 05:18AM

24
#659 - Wandering_startupper / @Hlushchenko_VL

02/15/2020 at 06:54PM

24
#660 - perTheGolfer / @GolferPer

02/18/2020 at 08:46AM