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_

1891 active golfers, 7962 entries

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

06/21/2025 at 12:05PM

24
#>985 - Karan / @KaranVaity

06/21/2025 at 12:02PM

25
#>1051 - Karan / @KaranVaity

06/21/2025 at 11:59AM

25
#>1051 - Karan / @KaranVaity

06/21/2025 at 11:59AM

25
#>1051 - Karan / @KaranVaity

06/21/2025 at 12:01PM

25
#>1051 - Karan / @KaranVaity

06/21/2025 at 12:03PM

25
#>1051 - Karan / @KaranVaity

06/21/2025 at 12:04PM

26
#>1120 - Karan / @KaranVaity

06/21/2025 at 11:57AM

26
#>1120 - Karan / @KaranVaity

06/21/2025 at 11:58AM

28
#>1291 - Karan / @KaranVaity

06/21/2025 at 11:54AM

28
#>1291 - Karan / @KaranVaity

06/21/2025 at 11:55AM

31
#>1485 - Karan / @KaranVaity

06/21/2025 at 11:51AM

35
#>1645 - Karan / @KaranVaity

06/21/2025 at 11:50AM

37
#>1687 - Karan / @KaranVaity

06/21/2025 at 11:53AM

38
#>1702 - Karan / @KaranVaity

06/21/2025 at 11:50AM