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

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

1836 active golfers, 7682 entries

Solutions by @jyuxian:
23
#599 - jyuxian / @jyuxian

05/04/2019 at 05:24AM

24
#>822 - jyuxian / @jyuxian

05/04/2019 at 05:18AM

24
#>822 - jyuxian / @jyuxian

05/04/2019 at 05:21AM

24
#>822 - jyuxian / @jyuxian

05/04/2019 at 05:31AM

24
#>883 - jyuxian / @jyuxian

01/04/2020 at 04:32AM

25
#>960 - jyuxian / @jyuxian

05/04/2019 at 05:17AM

26
#>1029 - jyuxian / @jyuxian

05/04/2019 at 05:32AM

27
#>1102 - jyuxian / @jyuxian

05/04/2019 at 05:13AM

27
#>1134 - jyuxian / @jyuxian

01/04/2020 at 04:29AM

30
#>1333 - jyuxian / @jyuxian

05/04/2019 at 05:09AM

31
#>1391 - jyuxian / @jyuxian

05/04/2019 at 05:06AM

32
#>1443 - jyuxian / @jyuxian

05/04/2019 at 05:01AM

36
#>1598 - jyuxian / @jyuxian

05/04/2019 at 04:54AM

45
#>1712 - jyuxian / @jyuxian

05/04/2019 at 04:51AM

86
#>1808 - jyuxian / @jyuxian

05/04/2019 at 04:46AM