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 by @0x12b:

Unlock 16 remaining solutions by signing in and submitting your own entry
Created by: @TitouanT_

1861 active golfers, 7818 entries

Solutions by @0x12b:
21
#209 - two failing clusters in a trench coat / @0x12b

10/18/2019 at 10:00PM

22
#>496 - two failing clusters in a trench coat / @0x12b

10/18/2019 at 10:00PM

23
#>683 - two failing clusters in a trench coat / @0x12b

10/18/2019 at 09:57PM

24
#>884 - two failing clusters in a trench coat / @0x12b

10/18/2019 at 09:56PM

24
#>884 - two failing clusters in a trench coat / @0x12b

10/18/2019 at 09:59PM

25
#>992 - two failing clusters in a trench coat / @0x12b

10/18/2019 at 09:56PM

26
#>1071 - two failing clusters in a trench coat / @0x12b

10/18/2019 at 09:55PM

27
#>1142 - two failing clusters in a trench coat / @0x12b

10/18/2019 at 09:54PM

28
#>1225 - two failing clusters in a trench coat / @0x12b

10/18/2019 at 09:53PM

31
#>1431 - two failing clusters in a trench coat / @0x12b

10/18/2019 at 09:52PM

34
#>1573 - two failing clusters in a trench coat / @0x12b

10/18/2019 at 09:51PM

36
#>1634 - two failing clusters in a trench coat / @0x12b

10/18/2019 at 09:45PM

39
#>1687 - two failing clusters in a trench coat / @0x12b

10/18/2019 at 09:42PM

39
#>1687 - two failing clusters in a trench coat / @0x12b

10/18/2019 at 09:47PM

44
#>1733 - two failing clusters in a trench coat / @0x12b

10/18/2019 at 09:39PM

46
#>1748 - two failing clusters in a trench coat / @0x12b

10/18/2019 at 09:20PM