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

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

1887 active golfers, 7956 entries

Solutions by @eco_coder:
21
#115 - Tom ten Thij / @eco_coder

06/12/2019 at 12:17PM

22
#>481 - Tom ten Thij / @eco_coder

06/12/2019 at 12:13PM

23
#>643 - Tom ten Thij / @eco_coder

06/11/2019 at 12:24PM

24
#>867 - Tom ten Thij / @eco_coder

06/11/2019 at 12:17PM

24
#>867 - Tom ten Thij / @eco_coder

06/12/2019 at 12:10PM

26
#>1068 - Tom ten Thij / @eco_coder

06/11/2019 at 12:11PM

28
#>1227 - Tom ten Thij / @eco_coder

06/11/2019 at 12:10PM

32
#>1497 - Tom ten Thij / @eco_coder

06/11/2019 at 12:08PM

35
#>1624 - Tom ten Thij / @eco_coder

06/11/2019 at 12:05PM