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 @m4tty1c3:

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

1885 active golfers, 7939 entries

Solutions by @m4tty1c3:
21
#123 - Matt / @m4tty1c3

06/25/2019 at 11:24PM

21
#>149 - Matt / @m4tty1c3

07/25/2019 at 06:14PM

22
#>484 - Matt / @m4tty1c3

06/25/2019 at 11:23PM

23
#>649 - Matt / @m4tty1c3

06/25/2019 at 11:21PM

24
#>869 - Matt / @m4tty1c3

06/25/2019 at 11:15PM

26
#>1069 - Matt / @m4tty1c3

06/25/2019 at 11:13PM

27
#>1146 - Matt / @m4tty1c3

06/25/2019 at 10:59PM

27
#>1146 - Matt / @m4tty1c3

06/25/2019 at 11:05PM

29
#>1311 - Matt / @m4tty1c3

06/25/2019 at 10:54PM

34
#>1591 - Matt / @m4tty1c3

06/25/2019 at 10:51PM

37
#>1675 - Matt / @m4tty1c3

06/25/2019 at 10:50PM

41
#>1728 - Matt / @m4tty1c3

06/25/2019 at 10:48PM

47
#>1777 - Matt / @m4tty1c3

06/25/2019 at 10:42PM

56
#>1801 - Matt / @m4tty1c3

06/25/2019 at 04:27AM

87
#>1860 - Matt / @m4tty1c3

06/25/2019 at 04:22AM

91
#>1862 - Matt / @m4tty1c3

06/25/2019 at 04:21AM

96
#>1867 - Matt / @m4tty1c3

06/25/2019 at 04:15AM

102
#>1868 - Matt / @m4tty1c3

06/25/2019 at 04:14AM