Loading ...
Sorry, an error occurred while loading the content.
 

Re: word under the cursor

Expand Messages
  • Benoit Cerrina
    Thanks Benji and Christian, this is what I was looking for (I had actually seen it somewhere in the doc but this is one case of if you don t know the answer
    Message 1 of 6 , Sep 28, 2001
      Thanks Benji and Christian,
      this is what I was looking for (I had actually seen it somewhere in the doc
      but this is one case of if you don't know the answer you don't stand much
      chance to find the question).
      Benoit
      ----- Original Message -----
      From: "Benji Fisher" <fisherbb@...>
      To: "Benoit Cerrina" <b.cerrina@...>
      Cc: <vim@...>
      Sent: Saturday, September 29, 2001 12:10 AM
      Subject: Re: word under the cursor


      > Benoit Cerrina wrote:
      > >
      > > Hi,
      > > in a function what is the best way to retrieve the word under the cursor
      > > without moving it
      > > (if we restore it its ok)
      > > Thanks in advance
      > > Benoit
      >
      > :let foo = expand("<cword>")
      >
      > :help expand()
      > :help <cword>
      >
      > HTH --Benji Fisher
    Your message has been successfully submitted and would be delivered to recipients shortly.