Timeline for How to invoke mapped `i_CTRL-W` in function
Current License: CC BY-SA 4.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 29, 2018 at 13:10 | vote | accept | Hauleth | ||
Jul 28, 2018 at 12:00 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Jun 28, 2018 at 23:21 | comment | added | Hauleth |
@Mass for whatever reason feedkeys("\<C-w>", 'n') didn't work as expected as it deleted single character at the time. However it can be bug in NeoVim.
|
|
Jun 28, 2018 at 13:52 | comment | added | Mass |
feedkeys("\<C-w>", 'n') doesn't map (similar to normal! )
|
|
Jun 28, 2018 at 11:46 | answer | added | Hauleth | timeline score: 1 | |
Jun 28, 2018 at 11:33 | comment | added | Hauleth |
@statox unfortunately that doesn’t work as it moves cursor one character backwards and exec "norm! a\<c-w>" doesn’t work when started in the middle of the line.
|
|
Jun 28, 2018 at 11:29 | comment | added | statox |
One trick would be to use norm! i^w where you insert ^w with <c-v><c-w>
|
|
Jun 28, 2018 at 10:53 | history | asked | Hauleth | CC BY-SA 4.0 |