an opinionated i_ctrl-o
impl
with text hello| world
(|
is the cursor), it converts following input sequences:
<c-o>tw
to<esc>ltwa
, resultshello |world
<c-o>fw
to<esc>lfwa
, resultshello w|orld
it supports cancellation via <esc>
, and ends in normal mode rather than insert mode.
for other cases, it falls back to the original <c-o>
- just works
- yet not supposed to be used publicly, due to heavy dependencies
- linux
- nvim 0.10.*
- tui nvim
- haolian9/infra.nvim
m.i("<c-o>", function() require("ico")() end)