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
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
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
Great! Thank you!
let row = substitute(row, ^\\\(.*\\\)$, \\1 . rownext, g)
Yakov
: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
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
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