Bram Moolenaar wrote:

  > Suresh Govindachar wrote:
  > 
  >>> Actually I was trying to avoid writing all the wrapper code
  >>> that this code omits. :)  z= does more than this snippet, it
  >>> figures out what word it is, displays the list, requests user
  >>> input, processes user input, and changes the word.
  >>> 
  >>> The only thing I couldn't make it do is work from a function
  >>> call, 
  >> 
  >>   I tried 
  >> 
  >>      :normal i<c-v><c-o>z=
  >>   
  >>   and it almost worked.  So the question for Bram is whether
  >>   (from in input mode) i_CTRL-O z= is supposed to work!
  >
  > I suppose that <c-v> isn't there, otherwise you are inserting a
  > CTRL-O character in your text.  
  
  Yes.

  > Using CTRL-O z= in Insert mode works fine.  What was 
  > the problem?

  Short answer -- it works.  [Long answer:  Yesterday, I could 
  not get it to work;  today, the very first time I tried it, 
  the word was replaced by funny (non-aplha, non-numeric)
  characters.  Since then, it has always worked whenever I tried 
  it.] 

  --Suresh

Reply via email to