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
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
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
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,
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