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 5e4dfcccaa2db400090b66c3

prepend * to every non-blank line

Prepend an asterisk to every non-blank line in the input file.

Start file
This is a
very short

file, but it is 
still
full

of

surpises.
End file
*This is a
*very short

*file, but it is 
*still
*full

*of

*surpises.

View Diff

1,2c1,2
< This is a
< very short
---
> *This is a
> *very short
4,6c4,6
< file, but it is 
< still
< full
---
> *file, but it is 
> *still
> *full
8c8
< of
---
> *of
10c10
< surpises.
---
> *surpises.

Solutions by @Digang_e:

Unlock 19 remaining solutions by signing in and submitting your own entry
Created by: @johnreitano

1468 active golfers, 5977 entries

Solutions by @Digang_e:
11
#708 - Digang's 트위터 / @Digang_e

03/23/2022 at 05:38AM

12
#>760 - Digang's 트위터 / @Digang_e

03/23/2022 at 05:37AM

13
#>797 - Digang's 트위터 / @Digang_e

03/23/2022 at 05:37AM

14
#>858 - Digang's 트위터 / @Digang_e

03/23/2022 at 05:36AM

15
#>942 - Digang's 트위터 / @Digang_e

03/23/2022 at 05:33AM

16
#>1032 - Digang's 트위터 / @Digang_e

03/23/2022 at 05:33AM

17
#>1091 - Digang's 트위터 / @Digang_e

03/23/2022 at 05:32AM

18
#>1130 - Digang's 트위터 / @Digang_e

03/23/2022 at 05:31AM

20
#>1244 - Digang's 트위터 / @Digang_e

03/23/2022 at 05:30AM

21
#>1284 - Digang's 트위터 / @Digang_e

03/23/2022 at 05:30AM

22
#>1336 - Digang's 트위터 / @Digang_e

03/23/2022 at 05:28AM

23
#>1365 - Digang's 트위터 / @Digang_e

03/23/2022 at 05:28AM

23
#>1365 - Digang's 트위터 / @Digang_e

03/23/2022 at 05:29AM

23
#>1365 - Digang's 트위터 / @Digang_e

03/23/2022 at 05:30AM

25
#>1395 - Digang's 트위터 / @Digang_e

03/23/2022 at 05:27AM

25
#>1395 - Digang's 트위터 / @Digang_e

03/23/2022 at 05:29AM

28
#>1419 - Digang's 트위터 / @Digang_e

03/23/2022 at 05:27AM

30
#>1430 - Digang's 트위터 / @Digang_e

03/23/2022 at 05:25AM

45
#>1456 - Digang's 트위터 / @Digang_e

03/23/2022 at 05:22AM