Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Caml-list] vim OCaml-syntax: wrong indentation...

26 views
Skip to first unread message

Oliver Bandel

unread,
Dec 23, 2008, 8:24:06 PM12/23/08
to caml...@inria.fr
Hello,

in some cases, when switching on the syntax in vim
on an ocaml-file, the indentation is not as I configured in my
vimrc-file.

Some of the options I have set:

set expandtab
set sw=2
set tabstop=2
set ai


in some regions the indentation by tab is two spaces,
in others it's just one.
When switching off syntax, then indentation is always
two spaces. So this looks like a bug.
can't believe that this is a feature.

Is here someone on the list, who knows about this and
maybe also is in the vim-developers team, so that it can
be fixed?

Ciao,
Oliver

_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

David Allsopp

unread,
Dec 24, 2008, 5:12:19 AM12/24/08
to Oliver Bandel, caml...@inria.fr
C:\>head -10 c:\vim\vim72\indent\ocaml.vim
" Vim indent file
" Language: OCaml
" Maintainers: Jean-Francois Yuen <jfy...@happycoders.org>
" Mike Leary <le...@nwlink.com>
" Markus Mottl <markus...@gmail.com>
" URL: http://www.ocaml.info/vim/indent/ocaml.vim
" Last Change: 2005 Jun 25 - Fixed multiple bugs due to 'else\nreturn ind'
working
" 2005 May 09 - Added an option to not indent OCaml-indents
specially (MM)
" 2005 Apr 11 - Fixed an indentation bug concerning "let" (MM)

HTH,


David

> -----Original Message-----
> From: caml-lis...@yquem.inria.fr [mailto:caml-list-
> bou...@yquem.inria.fr] On Behalf Of Oliver Bandel
> Sent: 24 December 2008 01:24
> To: caml...@inria.fr
> Subject: [Caml-list] vim OCaml-syntax: wrong indentation...
>
> Hello,
>
> in some cases, when switching on the syntax in vim
> on an ocaml-file, the indentation is not as I configured in my

> .vimrc-file.

0 new messages