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

Re: Simple snippet?

Expand Messages
  • Jürgen Krämer
    Hi, ... may I recommend to use :file instead of :saveas as the first one does not leave a spurious file if the OP later decides to cancel his work or use a
    Message 1 of 5 , May 2, 2008
    • 0 Attachment
      Hi,

      Tony Mechelynck wrote:
      > On 01/05/08 19:05, Benjamin Fritz wrote:
      >>
      >> Even better (IMHO), see :help skeleton
      >>
      > Note that using ":0r" in an empty buffer, as recommended by ":h
      > skeleton", will leave a spurious empty line at the end of the file.
      > ":saveas", as shown above, doesn't have that limitation.

      may I recommend to use ":file" instead of ":saveas" as the first one
      does not leave a spurious file if the OP later decides to cancel his
      work or use a different file name?

      Regards,
      Jürgen

      --
      Sometimes I think the surest sign that intelligent life exists elsewhere
      in the universe is that none of it has tried to contact us. (Calvin)

      --~--~---------~--~----~------------~-------~--~----~
      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.