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

74092Re: copy a word without moving cursor

Expand Messages
  • Yakov Lerner
    Oct 1 12:31 PM
    • 0 Attachment
      On 10/1/06, Osho GG <oshogg@...> wrote:
      > On 10/1/06, Yakov Lerner <iler.ml@...> wrote:
      > > On 10/1/06, Osho GG <oshogg@...> wrote:
      > > > I know this mustbe pretty simple but I can't figure this out. I want
      > > > to copy a word into a buffer without moving the cursor. Currently I do
      > > > something like
      > > >
      > > > *"ayw^O:noh<CR>
      > I am already putting this segment in much larger map that does other
      > things on "a contents. However, the way I currently do it has a
      > disadvantage that the cursor moves and then it moves back and then the
      > screen flashes - all for nothing really. "ayaw or "ayiw doesn't work
      > for me because it changes cursor position. So, I want a simple way to
      > find the word at the current cursor position.

      map <F5> mzlb"ayw`z

      > screen flashes

      1) Check that your 'lazyredray' option is set.
      2) Try to add flag <silent> to your mapping

    • Show all 8 messages in this topic