71095Re: set textwidth=80 and c mode
- Jul 7, 2006On Thu, 06 Jul 2006 10:45:54 -0400
Charles E Campbell Jr <drchip@...> wrote:
>My .vimrc is very simple:
> 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.
also I add
$ cat .vim/ftplugin/c.vim
and that's all
> You can try editing something.c yourself, and then tryingIt tell that it set it last time in
> :verbose set tw?
> to find out where it was set last.
but it doesn't work.
It only works if I start vim like this:
vim +'set formatoptions=vt' /tmp/1.c
- << Previous post in topic Next post in topic >>