71077Re: set textwidth=80 and c mode
- Jul 6, 2006Paul Drynoff wrote:
>On Thu, 6 Jul 2006 09:37:55 -0400Do you have something like
>This doesn't help.
>I try this:
>$ cat .vim/ftplugin/c.vim
>but nothing changes when I open "C file".
>Only such black magic helps:
>vim +'set formatoptions=vt'
>I don't know why?
filetype plugin indent on
in your <.vimrc>?
When I put
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.
You can try editing something.c yourself, and then trying
:verbose set tw?
to find out where it was set last.
- << Previous post in topic Next post in topic >>