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

1848 active golfers, 7757 entries

Leaderboard (lowest score wins):
32
#1471 - Leandro Lourenci / @lourenci

11/27/2019 at 10:39PM

32
#1472 - vimgolfer / @vimgolfer13

01/09/2020 at 04:38AM

32
#1473 - Pradeep Kumar 🇮🇳🇮🇳🇮🇳🇮🇱🇮🇱🇮🇱 / @pradeep6kumar

01/29/2020 at 05:15PM

32
#1474 - (h i) / @hi_eduardo

01/31/2020 at 03:29AM

32
#1475 - Bitt Faulk / @bittfaulk

03/02/2020 at 10:11PM

32
#1476 - Nick Lee / @TooManyNickLees

04/04/2020 at 03:43PM

32
#1477 - volandkit / @volandkit

04/17/2020 at 09:50PM

32
#1478 - Sabrina Seibel / @seibelsabrina

04/25/2020 at 10:26PM

32
#1479 - Alexandre Devienne / @alexdevienn

05/09/2020 at 12:58PM

32
#1480 - ол ов о / @2dTyjFurC1MKMvd

05/14/2020 at 09:16AM

32
#1481 - David Cherednik / @david_cherednik

05/22/2020 at 07:02PM

32
#1482 - Krillian / @Krillian9

07/07/2020 at 09:14PM

32
#1483 - Akira Sagara / @SagaraAkira

07/16/2020 at 06:23AM

32
#1484 - noxxi / @noooxxi

08/20/2020 at 03:05PM

32
#1485 - knoebber / @knoebber1

08/21/2020 at 10:48PM

32
#1486 - Christ / @Christ46234422

09/05/2020 at 09:31PM

32
#1487 - Jordan Martel / @martelosaurus

10/13/2020 at 04:33AM

32
#1488 - Ossian O'Reilly / @ossian_oreilly

11/02/2020 at 07:12AM

32
#1489 - Prabhat Ranjan / @prabhatr27

11/05/2020 at 06:08AM

32
#1490 - jotalera de arrascaeta / @jotachico

03/15/2021 at 06:45PM

33
#1491 - Arend Lagendijk / @arendlagendijk

03/03/2019 at 04:49PM

33
#1492 - PJ Frazer / @pj_frazer

03/04/2019 at 12:03AM

33
#1493 - Raul / @Raul50174499

03/22/2019 at 10:37AM

33
#1494 - Radoslaw Ow / @radoslaw_ow

03/28/2019 at 02:45PM

33
#1495 - lobo / @lobo16303575

04/14/2019 at 11:13AM

33
#1496 - Iver Håkonsen / @HakonsenIver

04/23/2019 at 08:11PM

33
#1497 - Mike L / @Mikromol

05/27/2019 at 01:55PM

33
#1498 - Just...That / @I_am_JustThat

06/04/2019 at 12:27PM

33
#1499 - Skervim / @skervim

06/06/2019 at 11:27AM

33
#1500 - Frank / @fvbever

06/07/2019 at 07:54AM