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

1853 active golfers, 7782 entries

Leaderboard (lowest score wins):
24
#961 - Alessandro Cantini / @aecant

09/28/2021 at 04:51PM

24
#962 - vladanscy / @vladanscy

02/09/2023 at 09:25AM

25
#963 - mnx / @mnxx

02/27/2019 at 04:02PM

25
#964 - Cameron Fowler / @camfowler

03/19/2019 at 02:45AM

25
#965 - micchie 🐻 / @micchiebear

03/26/2019 at 11:39AM

25
#966 - Hu Yingcong / @HYingcong

04/02/2019 at 01:26AM

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

04/11/2019 at 02:03PM

25
#968 - Devi McDevFace / @IanMcD6

04/15/2019 at 07:56PM

25
#969 - Cj-bc_sd.sh🌸🐾🐟🔯💙💤@ソーダー / @Cj_bc_sd

04/19/2019 at 03:02PM

25
#970 - Καράτε Μόνο / @karate_mono

05/10/2019 at 08:33AM

25
#971 - JonasS / @jonas42s

05/30/2019 at 09:27AM

25
#972 - Hector Davensburg / @hdavensburg

06/02/2019 at 08:44PM

25
#973 - Williams Estrada / @WILLRZ96

06/02/2019 at 11:16PM

25
#974 - Reuben Reyes / @rreubenreyes

07/01/2019 at 05:09AM

25
#975 - Trevor Langston / @sunkenroad

07/03/2019 at 01:23AM

25
#976 - Crystal L / @Cartsly

07/13/2019 at 08:38PM

25
#977 - band / @band26376522

07/24/2019 at 09:15PM

25
#978 - Mr_Djez / @DjezMr

08/05/2019 at 05:58PM

25
#979 - Lyn Fernandez / @tallkien

08/27/2019 at 04:50PM

25
#980 - Bill Ruddock / @biinari

08/31/2019 at 10:14PM

25
#981 - Gammelin Guillaume / @ggammelin

09/17/2019 at 07:24AM

25
#982 - Clmi / @c_decaf

09/21/2019 at 09:56AM

25
#983 - gigorok / @gigorok

10/04/2019 at 07:29PM

25
#984 - Scott Rosenquist / @scottrosenquist

10/18/2019 at 02:38AM

25
#985 - 0xNinja / @0x_Ninja

10/23/2019 at 07:29AM

25
#986 - Mmskl / @mrokati

10/30/2019 at 12:29AM

25
#987 - Bruce Adams / @bruceadams1054

11/22/2019 at 02:07AM

25
#988 - Mike Beattie / @mjbnz

11/26/2019 at 07:38AM

25
#989 - Charlie OConor / @charlieoconor

11/27/2019 at 04:21AM

25
#990 - cínicoycansino / @pgv958

11/28/2019 at 12:57PM