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

1023 active golfers, 4261 entries

Leaderboard (lowest score wins):
27
#601 - wort / @rtiago98

04/10/2019 at 12:14PM

27
#602 - Ben Allan / @hellobenallan

04/10/2019 at 01:01PM

27
#603 - PCS Solutions / @PeteSolutions

04/18/2019 at 11:18AM

27
#604 - Keven / @czzhengkw

04/25/2019 at 01:37PM

27
#605 - Alexánder Caba / @CabaAlexander

05/02/2019 at 05:34PM

27
#606 - vimgolfer24271 / @vimgolfer24271

05/10/2019 at 11:45AM

27
#607 - Timothée Gauthier / @zmf_tim

05/11/2019 at 03:44PM

27
#608 - jibai Gao / @jibaiGao

05/18/2019 at 09:12AM

27
#609 - Nick Anishenko / @NAnishenko

05/22/2019 at 04:36AM

27
#610 - Ida Motzfeldt / @Sophonacs

05/26/2019 at 05:40PM

27
#611 - Erik Lindeborg / @ErikLindeborg

06/07/2019 at 04:10PM

27
#612 - Hugo Tai / @HugoTai100

06/11/2019 at 05:17AM

27
#613 - jackjsk / @jackjsk1

06/20/2019 at 04:12AM

27
#614 - Takayuki Sato / @yukitaka1974

06/20/2019 at 05:46PM

27
#615 - Corey Alexander / @coreyja_dev

06/27/2019 at 02:51AM

27
#616 - andresote / @andresote

07/20/2019 at 10:13PM

27
#617 - Ewan Carr / @ewancarr

07/21/2019 at 12:21PM

27
#618 - Maor Leger / @maor_leger

07/21/2019 at 07:13PM

27
#619 - Fan Zhang / @ffanzhang

07/23/2019 at 07:43AM

27
#620 - John / @JohnJDoe2

07/31/2019 at 10:33AM

27
#621 - Stefan Krist / @nerdyness_sk

08/20/2019 at 11:24AM

27
#622 - Paul Inc / @hiniol1982

08/24/2019 at 12:43PM

27
#623 - blub / @agorilladriving

08/27/2019 at 11:02AM

27
#624 - lxgreen / @lxgreen3

09/29/2019 at 10:22PM

27
#625 - Jonathan Medwig / @jmedwig

10/07/2019 at 12:25PM

27
#626 - Alexander v Trijffel / @avtnl

10/10/2019 at 10:21PM

27
#627 - Yasky / @Yaasky

10/21/2019 at 05:39PM

27
#628 - MasterFox / @MaestroZorro_

10/22/2019 at 02:08PM

27
#629 - rr / @rodgeur31

10/25/2019 at 09:25PM

27
#630 - aaa / @aaa09223304

11/21/2019 at 06:16AM