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

Re: Vim script line continuation?

Expand Messages
  • Matthew Winn
    ... Placing the line continuation on the end of the preceding line wouldn t work because something like ... is a legitimate Vim command. Using the start of the
    Message 1 of 4 , Mar 26, 2008
      On Wed, 26 Mar 2008 06:25:57 +0800, Dasn <dasn@...> wrote:

      > Well, it seems the new line continuation can be placed weirdly, which
      > will make the vim script syntax file even messy when considering the
      > line continuation. Any comments?

      Placing the line continuation on the end of the preceding line
      wouldn't work because something like
      :n C:\Windows\
      is a legitimate Vim command. Using the start of the following line
      instead is a good and unambiguous alternative.

      Vim isn't the only program to use start-of-line continuations: RFC822
      (email and the like) headers use whitespace at the start of a line to
      indicate that the line is a continuation of the line above.

      --
      Matthew Winn

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