caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* vim OCaml-syntax: wrong indentation...
@ 2008-12-24  1:23 Oliver Bandel
  2008-12-24 10:11 ` [Caml-list] " David Allsopp
  0 siblings, 1 reply; 2+ messages in thread
From: Oliver Bandel @ 2008-12-24  1:23 UTC (permalink / raw)
  To: caml-list

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [Caml-list] vim OCaml-syntax: wrong indentation...
  2008-12-24  1:23 vim OCaml-syntax: wrong indentation Oliver Bandel
@ 2008-12-24 10:11 ` David Allsopp
  0 siblings, 0 replies; 2+ messages in thread
From: David Allsopp @ 2008-12-24 10:11 UTC (permalink / raw)
  To: 'Oliver Bandel', caml-list

C:\>head -10 c:\vim\vim72\indent\ocaml.vim
" Vim indent file
" Language:     OCaml
" Maintainers:  Jean-Francois Yuen   <jfyuen@happycoders.org>
"               Mike Leary           <leary@nwlink.com>
"               Markus Mottl         <markus.mottl@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-list-bounces@yquem.inria.fr [mailto:caml-list-
> bounces@yquem.inria.fr] On Behalf Of Oliver Bandel
> Sent: 24 December 2008 01:24
> To: caml-list@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.
> 
> 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-12-24 10:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-24  1:23 vim OCaml-syntax: wrong indentation Oliver Bandel
2008-12-24 10:11 ` [Caml-list] " David Allsopp

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).