Re: scrolljump and paste ?

2019-05-11 Thread Tony Mechelynck
On Sat, May 11, 2019 at 3:08 AM M Kelly wrote: > > > :map :set scrolljump=1p > > :map :set scrolljump=1P > > :map :set scrolljump=-50 > > Hi, > > Thanks Tony. > Is there a way around the recursion of mapping p to call a function that > issues a p between setting

Re: scrolljump and paste ?

2019-05-10 Thread M Kelly
> 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 ? Hi, Something weird, like this ??? function! MyPaste() abort nnoremap p p let =1 execute "normal p" let =-50 nnoremap

Re: scrolljump and paste ?

2019-05-10 Thread M Kelly
> :map :set scrolljump=1p > :map :set scrolljump=1P > :map :set scrolljump=-50 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 -- -- You

Re: scrolljump and paste ?

2019-05-10 Thread Tony Mechelynck
On Sat, May 11, 2019 at 2:30 AM M Kelly wrote: > > Hi, > > I set scrolljump=-50, it works well for me. > But sometimes when I paste it is annoying when the cursor jumps. > I have experimented with: > > au InsertEnter * let =1 > au InsertLeave * let =-50 > > but this doesn't seem to affect

scrolljump and paste ?

2019-05-10 Thread M Kelly
Hi, I set scrolljump=-50, it works well for me. But sometimes when I paste it is annoying when the cursor jumps. I have experimented with: au InsertEnter * let =1 au InsertLeave * let =-50 but this doesn't seem to affect pasting. Does anyone know of or have a suggestion for this ? Could I remap