script boolean operators

2007-04-10 Thread Horvath Adam
Hi, I can not find (manual, list-archiv, google) how to use boolean operators (and, or) in script. I prefer this: if i500 and i1000 One working solution: normal G let numberofrows = line(.) normal gg let i = 1 while i=numberofrows if i500 if i1000 do something

Re: script boolean operators

2007-04-10 Thread Horvath Adam
Thanks, it's really straightforward, but where is it in the manual? http://vimdoc.sourceforge.net/htmldoc/usr_41.html - here I can not find. while i=numberofrows if i500 i1000 do something

use variable in substitute

2007-04-10 Thread Horvath Adam
Hi, One question again for me. Can I use variable in pattern of substitute() in script? let row = getline(j) 'trallala' let rownext = getline(j+1) 'bimbam' let row = substitute(row, ^\\\(.*\\\)$, \\1 rownext, g) 'trallala bimbam' Thanks, b. r. Aruna

Re: use variable in substitute

2007-04-10 Thread Horvath Adam
Great! Thank you! let row = substitute(row, ^\\\(.*\\\)$, \\1 . rownext, g) Yakov

Re: escape button to alt space

2006-09-28 Thread Horvath Adam
:map M-Space Esc instead of :map M-Space Esc (Note the trailing space!) That would explain it. This works! :map A-Space Esc and one space Thanks a lot, Adam

Re: escape button to alt space

2006-09-27 Thread Horvath Adam
I try to remap the escape button to alt+space combination to come back from insert mode to command mode. I don't know the solution to your specific problem, but I suggest you to use CTRL-C, because it works exactly like Esc in this context. CTRL-C is work as well (putty in ssh session) But

escape button to alt space

2006-09-26 Thread Horvath Adam
Hi, I try to remap the escape button to alt+space combination to come back from insert mode to command mode. :map M-Space Esc It works, but: after hitting alt+space the cursor jump to the beginning of the next line. Why? It's really disturbing. How can I correct? Thanks, Adam