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

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

1877 active golfers, 7906 entries

Solutions by @andreas_buhr:
21
#325 - Andreas Buhr / @andreas_buhr

05/21/2020 at 01:34PM

22
#>533 - Andreas Buhr / @andreas_buhr

05/21/2020 at 01:33PM

23
#>747 - Andreas Buhr / @andreas_buhr

05/21/2020 at 01:32PM

24
#>932 - Andreas Buhr / @andreas_buhr

05/21/2020 at 01:31PM

24
#>933 - Andreas Buhr / @andreas_buhr

05/26/2020 at 11:13AM

26
#>1101 - Andreas Buhr / @andreas_buhr

05/21/2020 at 01:19PM

29
#>1346 - Andreas Buhr / @andreas_buhr

05/21/2020 at 12:56PM

32
#>1507 - Andreas Buhr / @andreas_buhr

05/21/2020 at 12:51PM

57
#>1799 - Andreas Buhr / @andreas_buhr

05/21/2020 at 12:37PM

88
#>1853 - Andreas Buhr / @andreas_buhr

05/21/2020 at 12:26PM