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

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

1895 active golfers, 7987 entries

Solutions by @KaranVaity:
23
#822 - Karan / @KaranVaity

06/21/2025 at 12:05PM

24
#>988 - Karan / @KaranVaity

06/21/2025 at 12:02PM

25
#>1054 - Karan / @KaranVaity

06/21/2025 at 11:59AM

25
#>1054 - Karan / @KaranVaity

06/21/2025 at 11:59AM

25
#>1054 - Karan / @KaranVaity

06/21/2025 at 12:01PM

25
#>1054 - Karan / @KaranVaity

06/21/2025 at 12:03PM

25
#>1054 - Karan / @KaranVaity

06/21/2025 at 12:04PM

26
#>1123 - Karan / @KaranVaity

06/21/2025 at 11:57AM

26
#>1123 - Karan / @KaranVaity

06/21/2025 at 11:58AM

28
#>1294 - Karan / @KaranVaity

06/21/2025 at 11:54AM

28
#>1294 - Karan / @KaranVaity

06/21/2025 at 11:55AM

31
#>1489 - Karan / @KaranVaity

06/21/2025 at 11:51AM

35
#>1649 - Karan / @KaranVaity

06/21/2025 at 11:50AM

37
#>1691 - Karan / @KaranVaity

06/21/2025 at 11:53AM

38
#>1706 - Karan / @KaranVaity

06/21/2025 at 11:50AM