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

1063 active golfers, 4447 entries

Leaderboard (lowest score wins):
49
#991 - Benjamin Pelletier / @benjipelletier

09/24/2019 at 01:28PM

50
#992 - Kishou Yusa / @YusaKishou

07/18/2019 at 04:55AM

50
#993 - Zviad Mgaloblishvili / @ZMgaloblishvili

10/10/2019 at 08:16PM

51
#994 - Rajasegar Chandran / @rajasegar_c

09/25/2019 at 05:23AM

52
#995 - Matthias Kausl / @sig_segv

04/22/2019 at 02:50PM

52
#996 - Swapnil Vinay Dinkar / @swapnildinkar

04/27/2019 at 07:38PM

53
#997 - chenqiqi / @chenqiqi13

03/12/2019 at 05:17AM

53
#998 - Lewis Marshall / @LewisAMarshall

06/16/2019 at 06:26PM

53
#999 - Márcio Santos / @m4rciosantos

08/27/2019 at 12:10AM

53
#1000 - Ioannis Cherouvim / @cherouvim

09/10/2019 at 07:53PM

54
#1001 - MGJoe93 / @mgjoe93

03/02/2019 at 12:50PM

55
#1002 - deedeemeen / @deedeemeen

04/25/2019 at 02:17PM

55
#1003 - Larry Adames / @LarryAdames

07/02/2019 at 11:17PM

55
#1004 - samuel norbury / @SnNorbury

11/09/2019 at 12:02PM

56
#1005 - Romain BigO / @FunkyBigO

03/20/2019 at 08:09PM

57
#1006 - gurjit singh / @sgurjit

04/06/2019 at 05:47AM

57
#1007 - Thilan Tran / @ThilanTran

04/21/2019 at 07:03PM

57
#1008 - Zachary Cetinic / @Swervenstuff

06/26/2019 at 05:29PM

57
#1009 - Dylan Lutz / @DLutz_

11/16/2019 at 06:32PM

58
#1010 - Marco Cárdenas / @mgtcardenas

03/12/2019 at 01:56PM

58
#1011 - gWOLF3 / @GL3NNWOLF3

03/27/2019 at 08:16PM

58
#1012 - おけ / @ok8omk

05/27/2019 at 04:22AM

58
#1013 - ad / @ad44248786

06/28/2019 at 12:44PM

58
#1014 - Jun Isaji / @Jisaji

08/31/2019 at 04:02PM

60
#1015 - David Afonso / @davafons

07/01/2019 at 11:16PM

61
#1016 - Aeden Jameson / @daliful

03/12/2019 at 05:48PM

61
#1017 - dicekest / @dicekest

09/14/2019 at 02:45PM

61
#1018 - Scott Powell / @ScottPowellM

09/19/2019 at 11:21PM

62
#1019 - ahahsod / @ahahsod

10/07/2019 at 09:02AM

63
#1020 - Maximilian Kurthen / @MaxKurthen

11/25/2019 at 08:37AM