I have the following function:
" code
function! PHPStubs()
let wrd=expand("<cWORD>")
echo "wrd: " . wrd
if wrd == "forek"
exe "norm! bdWaforeach($array as $key=>$val){\<Cr>}\<Esc>k9l\<Esc>"
endif
endfunction
" /code
and it executes as I want it to, but leaves me in insert mode.
How do I modify so that I am left in normal mode?
thanks
--
Tim
tim at johnsons-web.com or akwebsoft.com
http://www.akwebsoft.com
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment