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

1836 active golfers, 7682 entries

Leaderboard (lowest score wins):
26
#1021 - Tim Varley / @varleti

03/11/2019 at 10:45PM

26
#1022 - Héctor M. Sosa / @Kerait

03/16/2019 at 09:36AM

26
#1023 - psliwka / @psliwka2

03/27/2019 at 06:16PM

26
#1024 - Adam Procio / @AdamProcio

03/30/2019 at 05:41PM

26
#1025 - Ruslan / @zimdero

04/12/2019 at 07:40AM

26
#1026 - Mort Rainey / @arch_midnight

04/14/2019 at 12:33PM

26
#1027 - Askhat Sakhabiev / @Sakhabiev_Ashat

04/14/2019 at 11:09PM

26
#1028 - fucus / @fishlovebanana

04/15/2019 at 12:19AM

26
#1029 - Grant / @grant_7788

04/24/2019 at 12:34PM

26
#1030 - Clément DOUIN / @soywod

05/20/2019 at 03:14PM

26
#1031 - Seraphid Renoid / @Seraphidl

05/21/2019 at 09:08AM

26
#1032 - Evans Code Rants / @EvansCodeRants

06/07/2019 at 04:16PM

26
#1033 - Graeme Smith / @InstaGraeme

06/09/2019 at 05:56AM

26
#1034 - Reportados123 / @reportados123

06/19/2019 at 08:46PM

26
#1035 - Johannes / @joka253

06/24/2019 at 08:17AM

26
#1036 - Rohit Kumar Jena / @rohitrango

07/05/2019 at 06:00AM

26
#1037 - mocoma / @mocoma1

07/07/2019 at 08:53PM

26
#1038 - Petru-Armand Bancila / @petruarmand

07/08/2019 at 04:04AM

26
#1039 - Ola / @Ola73745831

07/08/2019 at 08:00AM

26
#1040 - Adomas Jatužis / @adomixaszvers

07/13/2019 at 03:17PM

26
#1041 - Matt Vaughn / @mattttvaughn

07/28/2019 at 11:50PM

26
#1042 - Matti Sairanen / @MattiSairanen

08/05/2019 at 08:21AM

26
#1043 - majestic sloth / @SamLlama

08/08/2019 at 06:00AM

26
#1044 - monaqa / @mo_naqa

08/20/2019 at 02:47PM

26
#1045 - birdybirdbird / @birdybirdbird13

08/27/2019 at 01:12PM

26
#1046 - ian / @ianbrault

08/29/2019 at 11:17PM

26
#1047 - Gourav Chawla / @TechDeviant

08/30/2019 at 03:51AM

26
#1048 - jonathangai / @jonathangai1

09/01/2019 at 09:22PM

26
#1049 - Alexander L. / @Lexol4s

09/09/2019 at 04:00PM

26
#1050 - Thomas Edlich / @grumpybavarian

09/27/2019 at 08:39PM