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

Re: touch a filename under the cursor

Expand Messages
  • Christian Brabandt
    Hi David! ... I would use in this case instead of regards, Christian --~--~---------~--~----~------------~-------~--~----~ You received this
    Message 1 of 5 , Feb 5 2:01 PM
    • 0 Attachment
      Hi David!

      On Thu, 05 Feb 2009, David Fishburn wrote:

      > If you were trying to create a mapping out of this you can do so
      > using:
      > :echo expand('<cword'>)
      >
      > :map \fz :call system('touch '.expand('<cword>'))<CR>

      I would use <cfile> in this case instead of <cword>

      regards,
      Christian

      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.