71111Re: set textwidth=80 and c mode
- Jul 7, 2006On Fri, Jul 07, 2006 at 12:50:17PM +0400, Paul Drynoff wrote:
> On Thu, 06 Jul 2006 10:45:54 -0400This is the problem. If you add the line
> 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>
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
- << Previous post in topic Next post in topic >>