[plug] vim and programming languages
Jason Bainbridge
JaseOne at myrealbox.com
Tue Sep 3 16:00:35 WST 2002
Or try just:
:filetype indent on
in the win32 VIM I have here on my work machine it has indent settings for Java and 33 other languages, from what I understand cindent is best for C based languages.
For per file settings take a look at:
http://vim.sourceforge.net/htmldoc/options.html#modeline
I'm still learning VIM myself so excuse me if I got something wrong but the above seems pretty safe. :)
Regards,
Jason
-----Original Message-----
From: "Anthony J. Breeds-Taurima" <tony at cantech.net.au>
To: plug <plug at plug.linux.org.au>
Date: Tue, 3 Sep 2002 15:48:36 +0800 (WST)
Subject: Re: [plug] vim and programming languages
On Tue, 3 Sep 2002, Russell Steicke wrote:
> In my continuing quest to become as fluent with vim as with emacs, I
> have another two questions...
>
> Can I get vim to do automatic source code indenting?
Yup,
I don't know how compatable with java it is but in vim do
":help cindent"
":help smartindent"
Yours Tony
Jan 22-25 2003 Linux.Conf.AU http://linux.conf.au/
The Australian Linux Technical Conference!
More information about the plug
mailing list