On Wed, Oct 06, 2010 at 12:04:01AM +0200, Miklos Vajna wrote:
On Tue, Oct 05, 2010 at 11:24:46AM +0100, Caolán McNamara <caolanm@redhat.com> wrote:
For vim
set tabstop=4 shiftwidth=4 expandtab
is good IMO.
FWIW in sw/source/filter/ww8/* long ago I added
/* vi:set tabstop=4 shiftwidth=4 expandtab: */
to the end of all source files. I wonder about tweaking all our source
files to include emacs/vim/etc formatting directives
Not to question what you say, but is tabstop really necessary? If we
have no tabs in the code, I think that part can be avoided.
Thanks.
It's always set anyway, with default value 8. It just defines how tab
stops are placed (at every fourth character, in Caolán's example). With
expandtab, no real tab character inserted if you hit Tab key--it's
converted to appropriate number of spaces. See :help 'et' and :help 'ts'
for details.
D.
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.