win-vind icon indicating copy to clipboard operation
win-vind copied to clipboard

Rationale behind resident mode[Question]

Open Positron010 opened this issue 4 years ago • 4 comments

Question Hi, I wonder what is the purpose behind resident mode, as it seems for me that both it and insert mode have the same purpose, making it redundant. Am I missing something?

Thanks

Positron010 avatar Jul 29 '21 12:07 Positron010

Insert mode is a non-absorbing mode with binding, while Resident mode is a non-absorbing mode with only little binding.

I will explain the purpose in detail. Resident mode has minimal and non-overlapping bindings with other applications, so it can be used to turn off win-vind completely.

For example, we define a map like the following.

inoremap <Esc> to_edi_normal

In this case, it will unintentionally start Vim emulation when using the original Vim or some games. By the way, suppress_for_vim option is just for this purpose, and will automatically switch to Resident mode when you select an application with the keyword Vim in it.

In addition, the uiacachebuild option stresses the application as it periodically scans the UI of the selected window. However, when in Resident mode, uiacachebuild will stop scanning.

That's all. Thanks.

pit-ray avatar Jul 29 '21 15:07 pit-ray

Thanks for replying. So it seems to me that by default, there is no major difference, because they both have the same key bindings, and uicachebuild is also off by default. I think the difference will be more pronounced if insert mode Vim key bindings were also implemented in win-vind insert mode. For example, ctrl + r for pasting from registers, ctrl + u... etc But I understand that this is not easy.

By the way, could the Vim dot command be implemented for repeating actions? I acknowledge that this is not easy to implement outside a text editor.

Thanks

Positron010 avatar Jul 29 '21 17:07 Positron010

It can't be denied that there is Resident mode only for customization.

I don't know if Ctrl + r and Ctrl + u can be implemented, but the dot command may be possible. I added these features to the ToDo list.

Thanks.

pit-ray avatar Jul 30 '21 05:07 pit-ray

Thanks for the reply. I am closing this for the time being.

Positron010 avatar Aug 09 '21 21:08 Positron010