Hirohito Higashi wrote:

> 2016-8-19(Fri) 6:05:06 UTC+9 Bram Moolenaar:
> > Patch 7.4.2228
> > Problem:    Test files have inconsistant modelines.
> > Solution:   Don't set 'tabstop' to 2, use 'sts' and 'sw'.
> > Files:      src/testdir/README.txt, src/testdir/test_backspace_opt.vim,
> >             src/testdir/test_digraph.vim, src/testdir/test_gn.vim,
> >             src/testdir/test_help_tagjump.vim,
> >             src/testdir/test_increment_dbcs.vim,
> >             src/testdir/test_increment.vim, src/testdir/test_match.vim,
> >             src/testdir/test_tagjump.vim, src/testdir/test_window_cmd.vim,
> >             src/testdir/test_regexp_latin.vim, src/testdir/test_timers.vim
> [...]
> 
> Oh, most of them I've created. I'm sorry.
> After the next will care :-)
> 
> Speaking of which, what is the official indent setting of Vim
> script(extension: .vim)?  Is the following setting official? 
> 
> set shiftwidth=2 sts=2 expandtab
> 
> I think that should be described in the runtime/indent/vim.vim decide them.
> That way you will not have to write a modeline to the test file.

I would not call it official.  Using an indent of two spaces works well,
I can recommend that.  Whether or not to expand tabs is up to the user.
But if tabs are used 'tabstop' must be 8.

-- 
Change is inevitable, except from a vending machine.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui