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

wish list: 'joinoptions' (was: Formatting and parentheses)

Expand Messages
  • Benji Fisher
    ... That would be nice. I ll forward this to vim-dev, and maybe someone will like the idea enough to implement it. Warning: even if someone does so, that is
    Message 1 of 1 , Oct 2, 2001
    • 0 Attachment
      Piet Delport wrote:
      >
      > On Mon, 01 Oct 2001 at 21:54:25 -0400, Benji Fisher wrote:
      > >
      > > I do not think that Vim is that smart. It can adjust the
      > > indentation. (Use "=" instead of "gq".) It does not actually format
      > > code. I do not think there is any way to tell Vim to add a space
      > > after "," but not after "(".
      >
      > This would be damn nice actually... an extension/generalisation of the
      > `joinspaces' option. Thinking out loud, maybe something like a
      > `joinoptions' variable, with `comments'-style pairs defining how many
      > spaces any given character gets if you join on it.
      >
      > Example setting would be something like "2:.,2:?,2:!,0:(".

      That would be nice. I'll forward this to vim-dev, and maybe
      someone will like the idea enough to implement it. Warning: even if
      someone does so, that is no guarantee that it will be included, since
      there are many things that "would be nice" that do not get into Vim.

      --Benji Fisher
    Your message has been successfully submitted and would be delivered to recipients shortly.