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

How to set 'cinoptions' for GNU coding style?

Expand Messages
  • Clark J. Wang
    Hi, all: I need to work with some GNU style (http://www.gnu.org/prep/standards/ html_node/Formatting.html#Formatting) code and currently I set like this: set
    Message 1 of 1 , Jul 1, 2008
    View Source
    • 0 Attachment
      Hi, all:

      I need to work with some GNU style (http://www.gnu.org/prep/standards/
      html_node/Formatting.html#Formatting) code and currently I set like
      this:

      set ts=8
      set sw=2
      set et
      cinoptions=t0(0{2

      But lines after the opening brace after an 'if' statement don't indent
      correctly:

      if (true)
      {
      func(); // This line is not indented after '{'
      }

      Anyone can help?
      --~--~---------~--~----~------------~-------~--~----~
      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.