On Wed, Sep 04, 2019 at 07:20:51AM +0200, troulet wrote:
> Since last update (vim 8.1.1401),

That version isn't packaged in Debian.

> the auto indentation function (gg=G) is
> acting weirdly with bash scripts.
> 
> A quick example
> 
> #!/bin/bash
> 
> if [[ $test1 == 1 ]]; then
>   echo $test1
>   while read myvar; do
>     if [[ $myvar == 2 ]]; then
>       echo $myvar
>       if [[ $myvar == 3 ]]; then
>         echo $myvar
>       fi
>       fi
>     done < <(cat testfile)
>       fi
> 
> 
> When everything is fine under stretch (vim 8.0.707)

Stretch only had 8.0.0197.

Putting the above example into a file named foo.sh and running gg=G
works just fine here.

“:set filetype? indentexpr?” reports

  filetype=sh
  indentexpr=GetShIndent()

Are you actually using Debian's packages?  Do you have some other indent
script installed?

Cheers,
-- 
James
GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7  2D23 DFE6 91AE 331B A3DB

Reply via email to