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

454 active golfers, 1827 entries

Leaderboard (lowest score wins):
34
#361 - Maarten Staa / @SeriousSpoon

02/27/2019 at 01:20PM

34
#362 - Gabriel / @cimourdain

03/18/2019 at 05:34PM

34
#363 - Danny / @dannywood1976

03/19/2019 at 06:05PM

34
#364 - 김형창 / @uVmEMZsCgcYvqZi

03/29/2019 at 01:56AM

34
#365 - Jan B. / @bracki

04/08/2019 at 12:43PM

34
#366 - FP / @FPjde

04/11/2019 at 09:30PM

34
#367 - shredded / @shredded

04/13/2019 at 10:43AM

34
#368 - Ramesh Fit / @faltuFeet

04/16/2019 at 11:58PM

34
#369 - 沸腾钢 / @tobecloud

04/19/2019 at 08:04AM

34
#370 - chriskuck / @chriskuck

04/19/2019 at 07:00PM

34
#371 - lilicoco / @lilicoco20

04/26/2019 at 11:06PM

34
#372 - Frede Emil / @Frede_Eb

05/05/2019 at 01:06PM

34
#373 - JvdB01 / @JvdB001

05/07/2019 at 03:53PM

34
#374 - Enrico Campidoglio / @ecampidoglio

05/13/2019 at 02:58PM

34
#375 - Rodave / @r0drOGS

05/13/2019 at 09:16PM

35
#376 - TestaPerro / @TestaPerro

02/27/2019 at 03:44PM

35
#377 - noon / @noonknowsnonuno

03/06/2019 at 03:00PM

35
#378 - decentninja / @decentninja

03/06/2019 at 07:58PM

35
#379 - Dennis Parchkov / @DParchkov

03/15/2019 at 07:25PM

35
#380 - Raúl Cumplido / @raulcumplido

03/19/2019 at 02:46PM

35
#381 - Emanuele Aliverti / @memeAliverti

04/23/2019 at 02:09PM

35
#382 - victor tortolero / @MightyPenguinV

05/02/2019 at 03:11PM

35
#383 - Francois Urquhart / @LostUrquhart

05/13/2019 at 11:41AM

36
#384 - Kevin Tindall / @kevinkjt2000

03/08/2019 at 01:20AM

36
#385 - Christopher Fujino / @chrisfujino

03/08/2019 at 02:58AM

36
#386 - Juan Manuel Fresia / @fresiajm

03/17/2019 at 03:44AM

36
#387 - Herman Stavelin / @HsBruker

04/22/2019 at 07:55PM

36
#388 - Dan Loewenherz / @dwlz

04/26/2019 at 04:06PM

36
#389 - tynanguerra / @tynanguerra

05/13/2019 at 06:30PM

37
#390 - Tom Szyszko / @DaPolishMafia01

03/15/2019 at 07:26PM