Package: vim
Version: 2:8.1.0875-5
Severity: normal
Hello,
Since last update (vim 8.1.1401), 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)
#!/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
-- Package-specific info:
--- real paths of main Vim binaries ---
/usr/bin/vi is /usr/bin/vim.basic
/usr/bin/vim is /usr/bin/vim.basic
-- System Information:
Debian Release: bullseye/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.2.0-2-amd64 (SMP w/4 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE=en_US:en
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages vim depends on:
ii libacl1 2.2.53-4
ii libc6 2.28-10
ii libgpm2 1.20.7-5+b1
ii libselinux1 2.9-2+b2
ii libtinfo6 6.1+20190803-1
ii vim-common 2:8.1.0875-5
ii vim-runtime 2:8.1.0875-5
vim recommends no packages.
Versions of packages vim suggests:
pn ctags <none>
pn vim-doc <none>
pn vim-scripts <none>
-- no debconf information