mg979 / vim-visual-multi

Multiple cursors plugin for vim/neovim
MIT License
4.25k stars 82 forks source link

[feature] Add support for smartinput #185

Closed Freed-Wu closed 3 years ago

Freed-Wu commented 3 years ago
Some plugins have built-in compatibility:

-   jiangmiao/auto-pairs
-   AndrewRadev/tagalong.vim
-   dyng/ctrlsf.vim
-   Shougo/deoplete.nvim
-   ncmw/ncm2

https://github.com/kana/vim-smartinput is an alternative for jiangmiao/auto-pairs. It provides some functions for user to customize.

mg979 commented 3 years ago

https://github.com/mg979/vim-visual-multi/issues/172#issuecomment-864557105

Seems nice but it doesn't have a way to be switched off temporarily, that is needed for compatibility. You could ask @kana to add a when rule that checks if a condition is met, or insert the normal key, or a command to toggle the feature on and off.

Freed-Wu commented 2 years ago

I notice https://github.com/mg979/vim-smartinput seems to fix some bugs of kana's plugin (e.g. command map). Can it support vim-visual-multi?

mg979 commented 2 years ago

Working now?

Freed-Wu commented 2 years ago

No. Now, press ( still get ( not ()<Left>.

mg979 commented 2 years ago

By compatibility I actually meant to disable properly, not to have pairing in VM, so it should be ok.

Freed-Wu commented 2 years ago

How to enable it? I cannot found any text about smartinput in vim-help.txt.