0

In vimscript expand('<cword>') gives me the word under the cursor.

How can I get the word under the cursor starting at he current cursor location (skipping the word start).

  • Can I ask why? ye should do it, but moves the cursor. – D. Ben Knoble Feb 15 at 15:17
  • I want to use the result of ye for fzf find, but without changing the cursor or my cut buffer. – ideasman42 Feb 16 at 0:32
  • Use a different buffer? "aye – jhnc Feb 24 at 6:16
  • But how to extract this in vimscript? – ideasman42 Feb 24 at 10:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.