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

59949Re: How to copy - word under cursor and filename with full path to clipboard.

Expand Messages
  • Jürgen Krämer
    Jun 28, 2005
      Hi,

      Sanjeev Sapre wrote:
      >
      > I am looking for help on how to copy
      >
      > 1. Word under cursor

      nmap <F4> :let @* = expand('<cword>')<cr>

      > 2. Current file name with full path to clipboard.

      nmap <F5> :let @* = expand('%:p')<cr>

      > I would preferably map this to certain keys which will be handy.

      Regards,
      Jürgen

      --
      Jürgen Krämer Softwareentwicklung
      HABEL GmbH & Co. KG mailto:jkr@...
      Hinteres Öschle 2 Tel: +49 / 74 61 / 93 53 - 15
      78604 Rietheim-Weilheim Fax: +49 / 74 61 / 93 53 - 99
    • Show all 4 messages in this topic