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_

1877 active golfers, 7906 entries

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

10/18/2019 at 10:00PM

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

10/18/2019 at 10:00PM

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

10/18/2019 at 09:57PM

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

10/18/2019 at 09:56PM

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

10/18/2019 at 09:59PM

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

10/18/2019 at 09:56PM

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

10/18/2019 at 09:55PM

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

10/18/2019 at 09:54PM

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

10/18/2019 at 09:53PM

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

10/18/2019 at 09:52PM

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

10/18/2019 at 09:51PM

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

10/18/2019 at 09:45PM

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

10/18/2019 at 09:42PM

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

10/18/2019 at 09:47PM

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

10/18/2019 at 09:39PM

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

10/18/2019 at 09:20PM