On 5/21/06, Yakov Lerner [EMAIL PROTECTED] wrote:
On 5/22/06, Eric Arnold [EMAIL PROTECTED] wrote:
I've been trying to map cd if it's the first two characters on the
:ex line. I've tried all the combinations I can think of. On
several of them, I seem to be getting errors as if expr is run
On 5/21/06, Hari Krishna Dara [EMAIL PROTECTED] wrote:
On Sun, 21 May 2006 at 3:12pm, Eric Arnold wrote:
I've been trying to map cd if it's the first two characters on the
:ex line. I've tried all the combinations I can think of. On
several of them, I seem to be getting errors as if expr
On 5/22/06, Eric Arnold [EMAIL PROTECTED] wrote:
On 5/21/06, Yakov Lerner [EMAIL PROTECTED] wrote:
On 5/22/06, Eric Arnold [EMAIL PROTECTED] wrote:
I've been trying to map cd if it's the first two characters on the
:ex line. I've tried all the combinations I can think of. On
several of
On 5/22/06, Eric Arnold [EMAIL PROTECTED] wrote:
Eric, this works for me:
--
cnoremap xx c-r=getcmdpos()==1?MyFunc():'xx'cr
function! MyFunc()
call feedkeys(:call DoIt()\cr, 't')
return ''
endfu
And DoIt() is executed not in sandbox.
Does this work for you ?
Yakov
On 5/22/06, Yakov Lerner [EMAIL PROTECTED] wrote:
On 5/22/06, Eric Arnold [EMAIL PROTECTED] wrote:
Eric, this works for me:
--
cnoremap xx c-r=getcmdpos()==1?MyFunc():'xx'cr
function! MyFunc()
call feedkeys(:call DoIt()\cr, 't')
return ''
endfu
And DoIt() is
I've been trying to map cd if it's the first two characters on the
:ex line. I've tried all the combinations I can think of. On
several of them, I seem to be getting errors as if expr is run in
the sandbox (that dog won't hunt). The only one that works at all is
the first simple mapping, but
On Sun, 21 May 2006, Eric Arnold wrote:
I've been trying to map cd if it's the first two characters on the
:ex line. I've tried all the combinations I can think of. On
several of them, I seem to be getting errors as if expr is run in
the sandbox (that dog won't hunt). The only one that
On 5/22/06, Eric Arnold [EMAIL PROTECTED] wrote:
I've been trying to map cd if it's the first two characters on the
:ex line. I've tried all the combinations I can think of. On
several of them, I seem to be getting errors as if expr is run in
the sandbox (that dog won't hunt). The only one
On Sun, 21 May 2006 at 3:12pm, Eric Arnold wrote:
I've been trying to map cd if it's the first two characters on the
:ex line. I've tried all the combinations I can think of. On
several of them, I seem to be getting errors as if expr is run in
the sandbox (that dog won't hunt). The only