tpope / vim-rsi

rsi.vim: Readline style insertion
http://www.vim.org/scripts/script.php?script_id=4359
590 stars 36 forks source link

enable only in command mode #39

Open ri-aje opened 7 years ago

ri-aje commented 7 years ago

hi, can you add a variable to control this rsi feature only works in command line mode, i.e., give an option to disable it in insert mode? thanks.

hupfdule commented 5 years ago

Actually, please provide both, disabling in insert mode and disabling in commandline mode.

This would also fix #41, since the described problem only exists in commandline mode. It would be possible then to user vim-rsi for insert mode and readline.vim for commandline mode.

tpope commented 5 years ago

You can do inoremap <C-A> <C-A> now to preserve any built-in and prevent RSI from mapping it. This solves the readline.vim use case too.

tpope commented 5 years ago

I confused myself, meant to say that's how I want it implemented, as I elaborate on in #48.