Thursday, September 9, 2010

Escaping norm

(using Huge version with GTK2 GUI on ubuntu 10.04 32-bit)

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: