On 18/12/08 04:15, bill lam wrote:
> I found that some programming keywords such as for/while, indent the
> block when gq
>
> for this block,
>
> for sdfjkls klsjf klj sdfj
> ksfjkl skljf sklfj kl s fsdf
> sfjksldfjkl sdf skljf
> sdkfjklsjdfskljfj sdf
> sdfsl;kfl;ksf sf sdfsdf sdf
>
> after gq} became
>
> for sdfjkls klsjf klj sdfj
> ksfjkl skljf sklfj kl s fsdf
> sfjksldfjkl sdf skljf
> sdkfjklsjdfskljfj sdf
> sdfsl;kfl;ksf sf sdfsdf sdf
>
> it shows the same behavior for ft= empty or other types. What should
> be done to stop this indent?
>
:help 'formatoptions'
:help 'cindent'
:help 'indentexpr'
:help :filetype-indent-off
:help :filetype-overview
And to know the value of an option and where it was set, e.g.
'formatoptions':
:verbose set fo?
To see how filetype detection is currently set:
:filetype
with no arguments.
Best regards,
Tony.
--
"The sooner you fall behind, the more time you'll have to catch up!"
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---