Saturday, June 19, 2010

Re: unwanted indentation

On 19/06/10 15:52, Kamil Dworakowski wrote:
> Hi,
>
> This is a minor annoyance when editing. I demonstrate
> on a javascript file.
>
> Given the following are the contents of /tmp/foo.js
>
> function foo() {
> return {
> bar|
> }
> }
>
> (the pipe shows where the cursor is)
>
> When I type colon character (:) it un-indents the
> line, effectively transforming it into:
>
> function foo() {
> return {
> bar:|
> }
> }
>
> I'd like to know what is causing it. I tried turning off various
> options like autoindent and smarindent but with no difference.
>
> I have javascript syntax file from [1] in my local configuration,
> on top of what vim 7.2 has.
>
> -- Kamil
>
> [1] http://www.vim.org/scripts/script.php?script_id=1491
>

The javascript file being active,

:verbose setlocal cindent?
:help 'cindent'


Best regards,
Tony.
--
Waste not, get your budget cut next year.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: