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

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

1876 active golfers, 7905 entries

Solutions by @imdavidhwang:
23
#762 - David / @imdavidhwang

07/06/2020 at 11:06PM

24
#>923 - David / @imdavidhwang

04/18/2020 at 10:03PM

25
#>1017 - David / @imdavidhwang

04/18/2020 at 09:59PM

26
#>1098 - David / @imdavidhwang

04/18/2020 at 10:02PM

27
#>1173 - David / @imdavidhwang

04/18/2020 at 09:58PM

28
#>1264 - David / @imdavidhwang

07/06/2020 at 10:56PM

29
#>1342 - David / @imdavidhwang

04/18/2020 at 09:58PM

30
#>1394 - David / @imdavidhwang

04/18/2020 at 09:56PM

36
#>1652 - David / @imdavidhwang

04/18/2020 at 09:55PM

53
#>1786 - David / @imdavidhwang

04/18/2020 at 09:54PM