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

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

1877 active golfers, 7906 entries

Solutions by @rjsumner:
21
#312 - John Sumner / @rjsumner

04/26/2020 at 03:15PM

22
#>531 - John Sumner / @rjsumner

04/26/2020 at 03:14PM

23
#>572 - John Sumner / @rjsumner

03/11/2019 at 02:25AM

24
#>823 - John Sumner / @rjsumner

03/11/2019 at 02:20AM

24
#>891 - John Sumner / @rjsumner

10/23/2019 at 01:14PM

25
#>1017 - John Sumner / @rjsumner

04/26/2020 at 03:13PM

26
#>1047 - John Sumner / @rjsumner

03/11/2019 at 02:11AM

26
#>1047 - John Sumner / @rjsumner

03/11/2019 at 02:14AM

29
#>1288 - John Sumner / @rjsumner

03/11/2019 at 02:08AM

32
#>1475 - John Sumner / @rjsumner

03/11/2019 at 01:59AM