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

1895 active golfers, 7987 entries

Leaderboard (lowest score wins):
31
#1441 - woddy cyconer / @woddy1

04/22/2019 at 11:43AM

31
#1442 - Mike C / @StrixVariaXIX

04/22/2019 at 01:52PM

31
#1443 - rhae / @amaceda

04/25/2019 at 08:43PM

31
#1444 - Nils Moehrle / @MoehrleNils

05/06/2019 at 07:29PM

31
#1445 - Ondrej Poradek / @OPoradek

05/12/2019 at 12:06PM

31
#1446 - David McDonald / @dmcdona

05/15/2019 at 07:43AM

31
#1447 - Favio Manriquez / @favrik

05/21/2019 at 04:27AM

31
#1448 - seul / @seul15987381

05/24/2019 at 04:32AM

31
#1449 - うおお / @uoo38

06/07/2019 at 12:58AM

31
#1450 - *9vkZ{YP_XV[XCbNdmnT / @9vkzX

06/08/2019 at 12:24PM

31
#1451 - Robin / @0x767570

06/19/2019 at 08:34AM

31
#1452 - Vinícius Michelutti / @vinimichelutti

07/19/2019 at 11:28PM

31
#1453 - Kirill Maltsev / @kirill_maltsev

07/23/2019 at 02:39PM

31
#1454 - George Sofianos / @GeoSofianos

08/05/2019 at 07:19PM

31
#1455 - John Do / @JohnDo89513370

08/20/2019 at 08:57AM

31
#1456 - Mark Winckle / @Winckle

08/23/2019 at 09:50PM

31
#1457 - Russell Lescai / @RussLescai

09/23/2019 at 10:45AM

31
#1458 - zesk06 / @zesk06

09/29/2019 at 05:29AM

31
#1459 - Igor Czerwinski / @igoratron

10/07/2019 at 05:11PM

31
#1460 - Justin Sermeno / @justinsermeno

11/09/2019 at 04:38PM

31
#1461 - oldandslow / @oldandslow5

11/25/2019 at 06:00PM

31
#1462 - Aaron Harris / @TheJoyOfPython

12/02/2019 at 12:28AM

31
#1463 - Jason Neylon / @jasonneylon

12/12/2019 at 08:55PM

31
#1464 - Jose Javier Gonzalez / @jjgort

12/30/2019 at 01:41AM

31
#1465 - hash_chen / @hongxuchen

01/06/2020 at 03:00AM

31
#1466 - mapleseed / @idkanameqt

02/23/2020 at 03:14PM

31
#1467 - Tiago Nascimento / @tigum27

05/02/2020 at 09:45PM

31
#1468 - Axel / @Axel07930943

05/05/2020 at 04:39AM

31
#1469 - r4d1um / @r4d1um

05/12/2020 at 06:04PM

31
#1470 - Mack Hutsell / @sellshuts

05/23/2020 at 05:13PM