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

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

1861 active golfers, 7818 entries

Solutions by @MelvinCheung:
21
#220 - Melvin Cheung / @MelvinCheung

11/07/2019 at 01:33PM

21
#>220 - Melvin Cheung / @MelvinCheung

11/07/2019 at 01:34PM

23
#>690 - Melvin Cheung / @MelvinCheung

11/07/2019 at 01:31PM

24
#>887 - Melvin Cheung / @MelvinCheung

11/07/2019 at 01:29PM

25
#>994 - Melvin Cheung / @MelvinCheung

11/07/2019 at 01:27PM

28
#>1227 - Melvin Cheung / @MelvinCheung

11/07/2019 at 01:21PM

34
#>1573 - Melvin Cheung / @MelvinCheung

11/07/2019 at 01:15PM

34
#>1573 - Melvin Cheung / @MelvinCheung

11/07/2019 at 01:17PM