On Thu, Jun 11, 2020 at 09:43:44AM +0530, Manas wrote:
> Hi, thanks for your reply.
>
> On 11/06/20 1:47 am, John Passaro wrote:
> > you could write a function with a while 1 loop that calls getchar()
> > twice and calls exec 'normal i<C-K>' . char1 . char2, then calls itself
> > recursively. Then ctrl-C would get you out.
>
> I ran into a some issues while doing this. I could not make <C-k> work under
> execute. For e.g.:
>
> > function! TestFunc()
>
> > execute "normal! i<C-k>aa"
>
> > endfunction
>
> The above snippet is printing `<C-k>aa` as it is. How can I make it consider
> `<C-k>` as the control character rather than a string.
This might also be of interest:
https://github.com/DrCracket/painless-digraph
Haven't used it myself, but it's been on my list to take a look at.
Danek
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20200611050921.GB3812%40comfychair.org.
No comments:
Post a Comment