Re: set textwidth=80 and c mode

2006-07-08 Thread Paul Drynoff
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 . No this is not a sollution, .vim/ftplugin/c.vim already work, if I put to it

Re: set textwidth=80 and c mode

2006-07-08 Thread Niels Bo Andersen
Paul Drynoff wrote: I mean vim load this setting from .vim/ftplugin/c.vim but only when I start vim using: vim +'set formatoptions=vt' 'formatoptions' determines which parts of the text you enter gets wrapped. By default, in .c files, Vim wraps only comments, so if you try to enter a

Re: set textwidth=80 and c mode

2006-07-07 Thread Paul Drynoff
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

Re: set textwidth=80 and c mode

2006-07-07 Thread Benji Fisher
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,

Re: set textwidth=80 and c mode

2006-07-06 Thread Charles E Campbell Jr
Paul Drynoff wrote: On Thu, 6 Jul 2006 09:37:55 -0400 :help filetype-plugin This doesn't help. I try this: $ cat .vim/ftplugin/c.vim set textwidth=30 but nothing changes when I open C file. Only such black magic helps: vim +'set formatoptions=vt' I don't know why? Do you have