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