On 8/21/06, Edward Wong <[EMAIL PROTECTED]> wrote:
Dear all,I'm trying to accomplish sth similar as follow: ca grf <C-R>=(getcmdpos() == 1 && getcmdtype() == ':' ? 'grep -i ' .
expand("%:f") . ^V^V<C-Left>^V^V<Left> : grf)<CR>
Hello Edward,
ca grf <C-R>=(getcmdpos() == 1 && getcmdtype() == ':' ? 'grep -i '
.expand("%:f") . Reposition() : 'grf')<CR>
function! Reposition()
call feedkeys("\<C-Left>\<Left>")
return ""
endfun
Requires vim7.
Yakov
