> 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 something like set softtabstop=2 into ~/.vim/ftplugin/c.vim I see the difference when I edit "C" file, problem only when I try use something like set textwidth=30 and as I already said it also work, I mean vim load this setting from .vim/ftplugin/c.vim but only when I start vim using: vim +'set formatoptions=vt' anyway I tried: $grep filetype ~/.vimrc: filetype plugin on $cat .vim/c.vim set textwidth=30 $cat .vim/c/c.vim set textwidth=30 nothing changes
