mvllow / modes.nvim

Prismatic line decorations for the adventurous vim user
550 stars 13 forks source link

feat: add visual block-wise mode #25

Closed fitrh closed 2 years ago

fitrh commented 2 years ago

I made this PR because I don't know if the block-wise visual mode (Ctrl+v) was intentionally ignored or forgotten, if it was intentional, feel free to close it.

fitrh commented 2 years ago

It seem github diff does not render the Ctrl+v characters, here's the diff

20220428_051148_full

mvllow commented 2 years ago

Thank you for adding this 😌

Your diff image shows ^V on both line 201 and 206 but copying this locally, I only see ^V on line 206, whereas 201 is an empty string

fitrh commented 2 years ago

Yes, copy-paste from github diff doesn't give correct characters, it should be cloned

mvllow commented 2 years ago

Wish there was a better way to get the ^V modes that rendered properly everywhere – I could see that being confusing for contributors viewing the code on GitHub. I was unable to find any other way though so this is good 💜

fitrh commented 2 years ago

As I can recall, it's something called control character

fitrh commented 2 years ago

Found it, :help i_CTRL-V

mvllow commented 2 years ago

This does seem to work via nvim_replace_termcodes('<C-V>', true, true, true) 🎉