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

1874 active golfers, 7902 entries

Leaderboard (lowest score wins):
21
#361 - Olle Wiklund / @Kabix

07/31/2020 at 08:24AM

21
#362 - int@紅ぽよ / @int_cl

08/01/2020 at 06:58PM

21
#363 - Steve Frost / @FrostSteveFrost

08/02/2020 at 01:11AM

21
#364 - ぼとぼと / @boto_voto

08/02/2020 at 09:18AM

21
#365 - Vinay Sharma / @VinaySh63956554

08/08/2020 at 05:51PM

21
#366 - Nicolas Marier / @NicMarier

08/11/2020 at 02:08PM

21
#367 - João Pedro B Nadas / @jpnadas

08/15/2020 at 10:56AM

21
#368 - spock900 / @spock9002

08/15/2020 at 01:54PM

21
#369 - vito / @vito49999722

08/17/2020 at 06:37PM

21
#370 - Cao Van Bi / @CaoVanBi235

08/18/2020 at 03:40AM

21
#371 - Łukasz Kadłubowski / @LAKadlubowski

08/20/2020 at 10:32PM

21
#372 - Alex Daum / @JustBeAwesomer

08/21/2020 at 12:00PM

21
#373 - Ihor / @Ihor96382508

08/23/2020 at 07:55AM

21
#374 - Tom Dalling / @tom_dalling

08/31/2020 at 11:47AM

21
#375 - dezhonger / @dezhonger

09/01/2020 at 04:19PM

21
#376 - akouryy / @akouryy1

09/05/2020 at 08:19AM

21
#377 - Nick Edwards / @edwardsnjd

09/08/2020 at 01:55PM

21
#378 - M / @M88566443

09/08/2020 at 08:47PM

21
#379 - Piotr Kaznowski / @kaznowski

09/13/2020 at 05:01PM

21
#380 - FunkyKoval / @FunkyKoval10

09/16/2020 at 02:24PM

21
#381 - Aaron Cooley / @acoolz

09/20/2020 at 01:27PM

21
#382 - Alice / @Alice92541388

09/28/2020 at 04:08AM

21
#383 - Hardik Upadhyay / @HardikU84218026

09/29/2020 at 06:08AM

21
#384 - Jan Liu / @Jagsomarjan

09/29/2020 at 04:44PM

21
#385 - genoskill / @Genoskill

10/02/2020 at 09:28PM

21
#386 - Adrien Lemaire ドリ / @Adrien_Lemaire_

10/03/2020 at 08:59AM

21
#387 - Nazrulla / @Nazrull37098421

10/03/2020 at 06:24PM

21
#388 - Er St / @ErSt46286501

10/06/2020 at 10:28AM

21
#389 - Der Natsch / @dernatsch

10/06/2020 at 09:55PM

21
#390 - Max Odnoletkov / @ezlx

10/07/2020 at 02:10AM