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

1864 active golfers, 7827 entries

Leaderboard (lowest score wins):
24
#871 - Jake Treacher / @jaketreacher

08/14/2019 at 10:13AM

24
#872 - vim_ninja / @NinjaVim

08/19/2019 at 01:31PM

24
#873 - Simon Wilkinson / @simondwilkinson

08/24/2019 at 01:47PM

24
#874 - Daniel Rollins / @DanielJRollins

08/25/2019 at 07:35AM

24
#875 - Christian / @paierlep

08/30/2019 at 08:54PM

24
#876 - じんぺー / @jinpei0908

08/31/2019 at 08:13AM

24
#877 - 语冰者 / @darcysail

09/02/2019 at 06:03AM

24
#878 - lucca augusto / @LuccaAugusto6

09/08/2019 at 12:51PM

24
#879 - Ole / @Ole_Lnkoje

09/15/2019 at 03:22PM

24
#880 - EL KESRI Othmane / @KesriOthmane

09/16/2019 at 01:12PM

24
#881 - Phrasendroschke / @phrasendroschke

09/18/2019 at 01:49PM

24
#882 - Pogues 123 / @123Pogues

09/18/2019 at 05:21PM

24
#883 - yhiraki / @coffexpr

09/25/2019 at 10:16AM

24
#884 - lofoneax / @lofoneax

09/25/2019 at 08:59PM

24
#885 - Trapier Marshall / @aoeuser

09/26/2019 at 01:59AM

24
#886 - Josefina Alconada / @jochiAlconada

10/03/2019 at 10:02AM

24
#887 - Devistator / @Devistator5

10/08/2019 at 07:25AM

24
#888 - Walker Boh / @walker_boh

10/24/2019 at 03:26PM

24
#889 - Scott Taylor / @scott11X8

10/25/2019 at 12:23AM

24
#890 - vimgolfer / @vimgolfer9

11/03/2019 at 12:50PM

24
#891 - Ebi / @ehan6

11/08/2019 at 09:16PM

24
#892 - aaa / @aaa09223304

11/21/2019 at 06:21AM

24
#893 - zigford / @zigford_org

12/01/2019 at 12:29PM

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

12/01/2019 at 02:40PM

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

12/01/2019 at 03:44PM

24
#896 - Jason Crowley / @jcrowle5

12/06/2019 at 09:49PM

24
#897 - Ageless O₂ Absorber / @dr_barnowl

12/16/2019 at 10:36PM

24
#898 - Bennett / @bennettbackward

12/26/2019 at 02:46AM

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

12/26/2019 at 12:20PM

24
#900 - Anton Kriese / @AntonKriese

01/02/2020 at 12:05AM