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

1870 active golfers, 7848 entries

Leaderboard (lowest score wins):
25
#991 - Crystal L / @Cartsly

07/13/2019 at 08:38PM

25
#992 - band / @band26376522

07/24/2019 at 09:15PM

25
#993 - Mr_Djez / @DjezMr

08/05/2019 at 05:58PM

25
#994 - Lyn Fernandez / @tallkien

08/27/2019 at 04:50PM

25
#995 - Bill Ruddock / @biinari

08/31/2019 at 10:14PM

25
#996 - Gammelin Guillaume / @ggammelin

09/17/2019 at 07:24AM

25
#997 - Clmi / @c_decaf

09/21/2019 at 09:56AM

25
#998 - gigorok / @gigorok

10/04/2019 at 07:29PM

25
#999 - Scott Rosenquist / @scottrosenquist

10/18/2019 at 02:38AM

25
#1000 - 0xNinja / @0x_Ninja

10/23/2019 at 07:29AM

25
#1001 - Mmskl / @mrokati

10/30/2019 at 12:29AM

25
#1002 - Bruce Adams / @bruceadams1054

11/22/2019 at 02:07AM

25
#1003 - Mike Beattie / @mjbnz

11/26/2019 at 07:38AM

25
#1004 - Charlie OConor / @charlieoconor

11/27/2019 at 04:21AM

25
#1005 - cĂ­nicoycansino / @pgv958

11/28/2019 at 12:57PM

25
#1006 - Jerry Zhu / @xpost2000games

01/21/2020 at 03:07AM

25
#1007 - Xiangzhuo Meng / @MengXiangzhuo

02/01/2020 at 06:57AM

25
#1008 - Sander Vanhove / @SanderVhove

02/05/2020 at 09:09AM

25
#1009 - MegaPascal / @PascalMega

02/06/2020 at 08:14AM

25
#1010 - Pham Tuan Anh / @anhpt379

02/16/2020 at 10:34AM

25
#1011 - kikugawa816 / @kikugawa816

03/04/2020 at 01:17AM

25
#1012 - vtls / @vtls16

03/08/2020 at 05:15AM

25
#1013 - Alon Sandler / @AlonSandler

03/11/2020 at 01:41PM

25
#1014 - Vitor / @vitorldfreitas

03/21/2020 at 09:33PM

25
#1015 - Richard Pape / @Drippydik187

04/05/2020 at 01:30PM

25
#1016 - Ray Guan / @guanxi555

04/10/2020 at 04:04AM

25
#1017 - dule2607 / @dule26071

05/05/2020 at 04:16PM

25
#1018 - Jan Fiser / @dmmn082

05/08/2020 at 10:18AM

25
#1019 - Ciaran Sundborg / @intrntsmostholy

05/09/2020 at 01:58PM

25
#1020 - Raphael / @Console64

05/15/2020 at 07:39AM