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

1830 active golfers, 7659 entries

Leaderboard (lowest score wins):
21
#391 - Max Odnoletkov / @ezlx

10/07/2020 at 02:10AM

21
#392 - AAbraxas / @AAbraxas1

10/08/2020 at 07:05PM

21
#393 - Hristo Kamenov / @KamenovHristo

10/10/2020 at 02:30PM

21
#394 - Franz Kirchhoff / @kirchhoff_f

10/10/2020 at 07:23PM

21
#395 - Dmitry Antonyuk / @AntonyukDmitry

10/15/2020 at 08:13AM

21
#396 - Eduardo / @earada

10/15/2020 at 07:33PM

21
#397 - wilsonept / @wilsonept1

10/24/2020 at 05:49PM

21
#398 - Free Man / @FreeMan16396552

10/27/2020 at 06:24PM

21
#399 - John Watson / @JRWats0n

10/31/2020 at 03:56AM

21
#400 - Jasper Hoffmann / @HoffmannJasper

11/02/2020 at 01:26PM

21
#401 - Cornelius Roemer / @CorneliusRoemer

11/05/2020 at 05:18PM

21
#402 - FrolPaderin / @FPaderin

11/08/2020 at 01:42PM

21
#403 - David Kutschke / @D4KU_

11/14/2020 at 03:47PM

21
#404 - なんとなく鍛えたい気分 / @VpFvUt2dq2BLepg

11/19/2020 at 09:49AM

21
#405 - SilviaRodriguez / @Rodrigu3zSilvia

11/22/2020 at 09:41PM

21
#406 - Hugh / @haquaman

11/24/2020 at 04:18AM

21
#407 - fedja golf / @fedjagolf

11/26/2020 at 05:54PM

21
#408 - __VimGolfer__ / @VimGolfer19

11/30/2020 at 05:56PM

21
#409 - Jordan Joe Watson / @jordanjoewatson

11/30/2020 at 09:43PM

21
#410 - roudens / @roudens2

12/04/2020 at 06:02AM

21
#411 - bladehaze / @bladehaze

12/06/2020 at 03:09AM

21
#412 - Ian Burgan / @IanBurgan

12/14/2020 at 10:31PM

21
#413 - pherapont / @pherapont1

12/15/2020 at 05:45AM

21
#414 - f a / @5eraf

12/17/2020 at 01:45AM

21
#415 - justinhj / @justinhj

12/18/2020 at 11:04PM

21
#416 - Zhenkai W. / @Zhenkai_W

12/28/2020 at 05:14AM

21
#417 - Trong Kha Nguyen / @__ngtrongkha

12/29/2020 at 07:46AM

21
#418 - Jung Yeon Park / @park_jungy

12/29/2020 at 05:37PM

21
#419 - Nicolas Pagny / @NicolasPagny

01/02/2021 at 04:23PM

21
#420 - Ding Liu / @Nimrod0901

01/04/2021 at 06:45PM