Re: Accessing mapping from rhs

2018-08-30 Thread Lifepillar
On 30/08/2018 20:37, Christian Brabandt wrote: On Do, 30 Aug 2018, John Passaro wrote: Could you implement the function and accompanying mapping as follows? imap MyFunction("cr") imap n MyFunction("Leader-n") This is the typical workaround. The idea was to be able to know in the function

Re: Accessing mapping from rhs

2018-08-30 Thread Christian Brabandt
On Do, 30 Aug 2018, John Passaro wrote: > Could you implement the function and accompanying mapping as follows? > > imap MyFunction("cr") > imap n MyFunction("Leader-n") This is the typical workaround. The idea was to be able to know in the function which mapping triggered the call to it,

Re: Accessing mapping from rhs

2018-08-30 Thread John Passaro
Could you implement the function and accompanying mapping as follows? imap MyFunction("cr") imap n MyFunction("Leader-n") Sorry if this is obvious, if it is impractical for some reason I'm curious why. John Passaro (917) 678-8293 On Thu, Aug 30, 2018 at 1:18 PM, Christian Brabandt wrote: >

Re: Accessing mapping from rhs

2018-08-30 Thread Christian Brabandt
On Do, 30 Aug 2018, Lifepillar wrote: > Is it possible to access the lhs of a mapping from its rhs? > For example, given: > > imap MyFunction() > > is there a way for MyFunction() to know that it was called by ? Not that I know of and I have whished for that before. Best, Christian -- Wen

Re: How can i add the same string to many lines ?

2018-08-30 Thread Tim Chase
On 2018-08-30 09:01, Antharia Jack wrote: > I would like to add target="_blank" to all my href in a html file. > I would like to say to vim : add this string after the second " > symbol of each line where is the word href. If all hrefs are quoted and use the same quotation, it's pretty straightfor

Accessing mapping from rhs

2018-08-30 Thread Lifepillar
Is it possible to access the lhs of a mapping from its rhs? For example, given: imap MyFunction() is there a way for MyFunction() to know that it was called by ? Thanks, Life. -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are

Re: How can i add the same string to many lines ?

2018-08-30 Thread 'Grant Taylor' via vim_use
On 08/30/2018 10:01 AM, Antharia Jack wrote: Hello everyone ? Hi, I would like to add target="_blank" to all my href in a html file. Okay. That seems odd, but you do your own thing. I would like to say to vim : add this string after the second " symbol of each line where is the word href

How can i add the same string to many lines ?

2018-08-30 Thread Antharia Jack
Hello everyone ? I would like to add target="_blank" to all my href in a html file. I would like to say to vim : add this string after the second " symbol of each line where is the word href. For now i just use the dot command to each line. Thanks for reading. -- -- You received this message

Re: About using vartabstop

2018-08-30 Thread h_east
Hi, 2018-8-30(Thu) 14:36:09 UTC+9 Christian Brabandt: > On Mi, 29 Aug 2018, Lifepillar wrote: > > > There's a meme (if it may be called so) circulating on Twitter > > about using Fibonacci sequences for indentation. Just for fun, > > I wanted to see if it could be implemented using the vartabs >