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 <[EMAIL PROTECTED]> 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