Re: Behavior on vim 6.3 (compared to 6.2) regarding auto-indentation
- filetype plugin has preference before vimrc. If you want redefine this
1. for particular file, modelines should be used
2. for all files of the same filetype, filetype plugin with your settings
should be writen and placed in ~/.vim/after/ftplugin/
On Mon, 4 Apr 2005 16:12:33 +0200, Ernst de Haan
>> > And here's when it does not work as expected:
>> > 1) Have an existing line, which is longer than <textwidth> chars. Use
>> > 'A' to append.
>> > 2) Note that vim will not auto-break the line
>> > Would you consider this a bug? Can you reproduce it?
>> This seems to indicate that your 'formatoptions' now includes the "b"
>> flag or the "l" flag, or both. See
> --- Options ---
> background=dark cinoptions=j1 ruler tabstop=3
> ttymouse=xterm2 t_Sf=^[3%dm
> backspace=2 expandtab suffixesadd=.java
> cindent filetype=java syntax=java ttyfast
> comments=sO:* -,mO:*
> But I explicitly set formatoptions in my .vimrc as follows:
> set formatoptions=tcrow
> Seems the Java plug-in overrides this setting somehow. Investigating...
Mgr. Marián Csontos
Radničné námestie 4
821 05 Bratislava
tel. +421 2 4829 4218
________ Information from NOD32 ________
This message was checked by NOD32 Antivirus System for Linux Mail Server.
- Ernst de Haan wrote:
> Hmmm, I should study vim a bit more, it seems to be extremelyIndeed. And (AFAIK) everything is in the help. But sometimes one runs
into a needle-and-haystack problem. The latter can be somewhat overcome
thanks to completion (type ":help " followed by part of a keyword,
possibly with wildcards, then hit Tab or Ctrl-D) and to the ":helpgrep"