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

1861 active golfers, 7818 entries

Leaderboard (lowest score wins):
31
#1441 - r4d1um / @r4d1um

05/12/2020 at 06:04PM

31
#1442 - Mack Hutsell / @sellshuts

05/23/2020 at 05:13PM

31
#1443 - Rishi Javia / @RishiJavia

06/01/2020 at 07:48PM

31
#1444 - Pengfei Cheng / @JohnickC

06/09/2020 at 12:30PM

31
#1445 - adamvimgolf / @adamvimgolf

06/14/2020 at 01:06AM

31
#1446 - Dheepak Krishnamurthy / @kdk_t

06/29/2020 at 06:23AM

31
#1447 - Michael V. / @mvivirito

07/18/2020 at 10:39PM

31
#1448 - abhijeet patil / @abhijeetptl5

09/02/2020 at 05:08PM

31
#1449 - stanley förster / @stnlyfrstr

09/23/2020 at 01:28PM

31
#1450 - Asbjørn Riddervold / @ARiddervold

10/11/2020 at 07:12PM

31
#1451 - noam teyssier / @noamteyssier

10/15/2020 at 02:32AM

31
#1452 - Filipe 💙 / @ABarroso

10/24/2020 at 04:36PM

31
#1453 - Arryue / @Arryue2

11/07/2020 at 06:56AM

31
#1454 - Daniel Latzer / @tournqat

11/19/2020 at 07:20AM

31
#1455 - Finniboy / @OrangeFrano

12/11/2020 at 05:26PM

31
#1456 - Denny Huang / @denny0223

12/22/2020 at 06:51AM

31
#1457 - fff / @fff51460170

01/03/2021 at 10:55AM

31
#1458 - Marcin Dostojewski / @MarcinekAGH

01/10/2021 at 02:58PM

31
#1459 - this is for vim golf / @Dis4VimGolf

01/12/2021 at 11:39PM

31
#1460 - pomélux / @pomelux

03/10/2021 at 08:53PM

32
#1461 - Holden Lewis / @lonnez90

03/09/2019 at 12:38AM

32
#1462 - Jonathan C. Dietrich / @jcdietrich

03/13/2019 at 02:49PM

32
#1463 - etherflow / @etherfl0w

04/01/2019 at 03:15PM

32
#1464 - HMSBoaty / @HMS_Boaty

04/09/2019 at 10:09PM

32
#1465 - てんなし / @tnnsh1

04/22/2019 at 07:35AM

32
#1466 - Manuel Filz / @f1l2

04/23/2019 at 04:18PM

32
#1467 - Michaël Lévesque-Dion / @mlevesquedion

04/25/2019 at 12:39AM

32
#1468 - kenzie / @kenziefcc

05/10/2019 at 06:04PM

32
#1469 - TheJoblessGuyTalks / @the_jgt

05/27/2019 at 01:12PM

32
#1470 - version 34.053a / @Age_of_machines

05/27/2019 at 01:44PM