703designs wrote:
> If I type in:
> 
> Redskins = {team,<CR>{name, "redskins"}}.
> 
> After the carriage return, Vi should indent as:
> 
> Redskins = {team,
>     {name, "redskins"}}.
> 
> But instead, the second line isn't indented. And I know that Vi
> understands Erlang indentation because, after typing this, if I indent
> the line (==), it indents properly. What's the deal? Indentation
> always is invoked with a carriage return with other filetypes.

It works for me. Perhaps you have somehow inadvertedly set 'paste'?
Check

     :set paste?

and/or issue

     :set nopaste

and see if that fixes it. If not, perhaps check

     :set indentkeys?

and/or

     :set indentkeys+=o

Those are the most likely things I can think of that would cause the
problem. Once you've tracked down what the problem is, find its cause by
adding :verbose to the queries, e.g.

     :verbose set paste?

and you'll be able to track down the rogue script that's messing it up
(hopefully).

Cheers,

Ben.




--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to