* Tim Johnson <[email protected]> [100909 15:49]:
> (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?
   Never mind. I found the problem was in the calling code. I
   had a dispatch function that filtered by &ft and it was adding
   an 'a' after the call.
   <blush>
-- 
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

Reply via email to