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

865 active golfers, 3569 entries

Leaderboard (lowest score wins):
21
#181 - Nathan Bendich / @neonb88

09/08/2019 at 02:28PM

21
#182 - Andac Safa / @SanDForcE94

09/10/2019 at 06:22AM

21
#183 - platypusDancing / @platypusDancing

09/12/2019 at 05:36PM

21
#184 - Ollin Boer Bohan / @madebyollin

09/15/2019 at 08:30PM

21
#185 - Oskar Fridell / @rax0m

09/16/2019 at 09:23AM

21
#186 - Andrey / @andreyrmg

09/16/2019 at 02:25PM

21
#187 - Douglas Massolari / @dmassolari

09/16/2019 at 03:40PM

21
#188 - Cassandra / @kascein

09/17/2019 at 04:56AM

21
#189 - Gasol Wu / @gasolwu

09/17/2019 at 05:28PM

21
#190 - Viktor Styrud / @Visklol

09/18/2019 at 11:16AM

22
#191 - Tinko Minko / @tandikula

02/26/2019 at 06:21AM

22
#192 - hn9u / @hn9u

02/27/2019 at 09:27AM

22
#193 - Valacar / @valacar

03/04/2019 at 01:55AM

22
#194 - maq / @maq41476369

03/04/2019 at 02:50PM

22
#195 - Matthew Barry / @komputerwiz

03/04/2019 at 03:15PM

22
#196 - Mihai Crăiță / @mihai_craita

03/04/2019 at 10:41PM

22
#197 - No Not / @NoNot44894988

03/10/2019 at 10:06AM

22
#198 - Animeville Horror / @InMyExperience

03/11/2019 at 02:20AM

22
#199 - Vimfiz / @vimfiz

03/22/2019 at 12:45AM

22
#200 - Brad Daniels / @JBradDaniels

03/27/2019 at 03:14AM

22
#201 - Lincoln / @chalcidfly

04/02/2019 at 08:46PM

22
#202 - Alan Barnett / @alan23394

04/03/2019 at 08:53PM

22
#203 - Pratik / @prathik_t

04/04/2019 at 06:08AM

22
#204 - Chris Robson / @cjrobson5

04/08/2019 at 11:55AM

22
#205 - zaperrer / @zaperrer

04/11/2019 at 06:21PM

22
#206 - Mac Goever / @MacGoever

04/12/2019 at 08:25AM

22
#207 - 出望和ましゅう / @matvore

04/16/2019 at 12:35PM

22
#208 - 이종혁 / @BluePaisa

04/16/2019 at 02:10PM

22
#209 - Gitsnik / @dracyrys

04/17/2019 at 01:52PM

22
#210 - Andy Balaam / @andybalaam

05/03/2019 at 03:36PM