Append string to -- INSERT / NORMAL -- in vi mode #599
-
When pasting multiple lines, Multiline presents a nice colored help tip: How would I (optionally) suffix something similar in vim mode to the Happy to share a PR if I knew where to look. I have been using vim for years, but I am not an advanced user, vi mode in ble.sh just blew me away. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
My mistake, should have checked the wiki - Solution via ~/.blerc for anyone else interested:
|
Beta Was this translation helpful? Give feedback.
-
@akinomyoga I have one more related question, I could not solve regarding this.
When I try to integrate Ctrl+C to drop to shell with this, it works well in INSERT mode, but if I am editing multi-lines and move to NORMAL mode, I am unable to Ctrl+C to shell. I am trying to get it to Ctrl+C in NORMAL mode and exit back into a default INSERT mode:
It either makes the prompt disappear (fixed by hitting enter) or it logs:
What am I missing here? |
Beta Was this translation helpful? Give feedback.
Where did this come from? There is no such function as
ble-edit/buffer#clear
orble/decode/keymap
. Even if it existed, you shouldn't call random internal functions without understanding them. You might be able to change a part of the internal state by calling some functions, but you actually need to adjust many different states to make it work. If you want to combine existing behaviors of widgets, you can just call the widgets in order: