Re: How exactly does one use the mode() function

2015-08-10 Thread Nikolay Pavlov
2015-08-10 17:39 GMT+03:00 Graham Lawrence : > I routinely pass parameters to mappings by simply typing them in at the > beginning of a line and running the mapping which begins 'ld0' > > I reasoned I could extend this principle to functions as follows: > norm "pP0i > sleep 1 > while mo

Re: How exactly does one use the mode() function

2015-08-10 Thread Graham Lawrence
I probably should have added that I am not looking for the input() function here, I'm trying to understand why this approach doesn't work. I've also tried it with 'mode() != "N"', which causes vim to hang indefinitely, which seems reasonable if it is in Insert mode, though there is no indication i

How exactly does one use the mode() function

2015-08-10 Thread Graham Lawrence
I routinely pass parameters to mappings by simply typing them in at the beginning of a line and running the mapping which begins 'ld0' I reasoned I could extend this principle to functions as follows: norm "pP0i sleep 1 while mode() != "n" | sleep 1 | endwh norm l"ry0uu That is th