Friday, May 10, 2019

Re: scrolljump and paste ?

On Sat, May 11, 2019 at 3:08 AM M Kelly <mckelly2833@gmail.com> wrote:
>
> > :map <F5> :set scrolljump=1<CR>p
> > :map <S-F5> :set scrolljump=1<CR>P
> > :map <F6> :set scrolljump=-50<CR>
>
> Hi,
>
> Thanks Tony.
> Is there a way around the recursion of mapping p to call a function that
> issues a p between setting scrolljump values ? Perhaps with an alias ?
>
> thx,
> -mark

By using :noremap (and friends), the {rhs} is not inspected for
further mappings (i.e., even if it contains its own {lhs} or that of
another mapping, it remains unchanged).

--
--
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/CAJkCKXtVVZxJRv0j4q6QC7br4%2B%2BxmgrqfX%3Dh2%3Dx%3DbfnRVNGU-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments: