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_

1864 active golfers, 7827 entries

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

05/21/2020 at 01:34PM

22
#>530 - Andreas Buhr / @andreas_buhr

05/21/2020 at 01:33PM

23
#>745 - Andreas Buhr / @andreas_buhr

05/21/2020 at 01:32PM

24
#>928 - Andreas Buhr / @andreas_buhr

05/21/2020 at 01:31PM

24
#>929 - Andreas Buhr / @andreas_buhr

05/26/2020 at 11:13AM

26
#>1095 - Andreas Buhr / @andreas_buhr

05/21/2020 at 01:19PM

29
#>1338 - Andreas Buhr / @andreas_buhr

05/21/2020 at 12:56PM

32
#>1496 - Andreas Buhr / @andreas_buhr

05/21/2020 at 12:51PM

57
#>1786 - Andreas Buhr / @andreas_buhr

05/21/2020 at 12:37PM

88
#>1840 - Andreas Buhr / @andreas_buhr

05/21/2020 at 12:26PM