vim-commentary icon indicating copy to clipboard operation
vim-commentary copied to clipboard

Not an Issue, implementation question

Open ikouchiha47 opened this issue 5 years ago • 0 comments

Hey. I am quite new to vimscript. I found this while I was implementing my own. As I was going through the codebase. I found these lines quite intriguing.

My question is why such a complex substitution was required? Why not take each line, see if it starts with l, and if it does then substitute %s with the line?

Also, why is this !~# \\ needed? And the use of \d?

Thanks

ikouchiha47 avatar Jun 01 '20 03:06 ikouchiha47