Axel Bender wrote:
> When indenting a function body with >i{, the result of the command
> depends on whether the initial { is followed by white space or not
> (Vim 7.3 build 162, started as gvim -u NONE):
>
> {
> a = b;
> }
>
> and >i{ results in
>
> {
> a = b;
> }
>
> which is correct. However
>
> {<spc>
> a = b;
> }
>
> is indented as
>
> {<spc>
> a = b;
> }
Well, don't put a space there then.
What happens is that i{ selects the text inside the {}. This happens on
character basis, thus that trailing space is included, which results in
that line to be part of the line range that the > operator works on.
--
To define recursion, we must first define recursion.
/// 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