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

71111Re: set textwidth=80 and c mode

Expand Messages
  • Benji Fisher
    Jul 7 12:06 PM
    • 0 Attachment
      On Fri, Jul 07, 2006 at 12:50:17PM +0400, Paul Drynoff wrote:
      > On Thu, 06 Jul 2006 10:45:54 -0400
      > Charles E Campbell Jr <drchip@...> wrote:
      > >
      > > Do you have something like
      > > filetype plugin indent on
      > > in your <.vimrc>?
      > >
      > > When I put
      > > set tw=80
      > > into my .vim/ftplugin/c/c.vim file, and then edited something.c,
      > > the textwidth was then 80 instead of 0 as it normally is.
      > >
      > My .vimrc is very simple:
      > ----
      > set autoindent
      > set wildmenu
      >
      > set wcm=<Tab>
      > -----

      This is the problem. If you add the line

      filetype plugin on

      to your vimrc file, then vim should recognize any file ending in .c as a
      C file and apply the settings from ~/.vim/ftplugin/c/c.vim .

      HTH --Benji Fisher
    • Show all 9 messages in this topic