Re: writing one text the same way vim's help

2019-05-10 Thread Erik Christiansen
On 10.05.19 19:29, Mathieu Roux wrote: > 1) |plouf| is colored is blue, and *plouf* is colored in red when open > with vi. It is function of hightlight, right? How can i use the same > highlight for my own-text file? Not being a user of highlighting, I can only point to ":h highlight". Mastering

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

Re: perl in vim question

2019-05-10 Thread tooth pik
no, that's window position, not buffer line i have an ugly workaround: in viml before the perl i let lno = line('.') then inside the perl i use $l = VIM::Eval(lno); On Fri, May 10, 2019 at 1:29 AM Tekki wrote: > > Am Donnerstag, 9. Mai 2019 21:37:04 UTC+2 schrieb toothpik: > > there is no

writing one text the same way vim's help

2019-05-10 Thread Mathieu Roux
Hi everybody, I posted questions before, but i was not clear in my mind about what i wanted to do exactly and what was possible with vim. I read more in vim's help, and i understand better now. I can see in my directory /usr/share/vim/vim80/doc how vim's help files are made. And now i think tags

Re: searching one word containing # with touch *

2019-05-10 Thread 'Andy Wokula' via vim_use
Am 09.05.2019 um 20:20 schrieb Mathieu Roux: I have so many questions: 1) map :set isk+=#-normal * Vim's help about "bar" does not allow me to understand what it means. Relevant help sections are :h :bar :h The bar character `|' separates most Ex-commands. And to escape the

Re: perl in vim question

2019-05-10 Thread Tekki
Am Donnerstag, 9. Mai 2019 21:37:04 UTC+2 schrieb toothpik: > there is no $curbuf->Line() function Try $curwin->Cursor(): "With no arguments, returns a (row, col) array for the current cursor position in the Window." -- -- You received this message from the "vim_use" maillist. Do not