Public bug reported: Vim already comes with a good syntax highlighting default, but editing files with 2 space indentation is a disaster. All indentation aware editors correctly detect this setup and are able to indent and dedent lines correctly, but not vim.
There are a couple of plugins that fix the issue, even though I think that it is a usability bug in vim. https://vi.stackexchange.com/questions/52/how-do-i-make-vim-adapt-to- the-current-indenting-style-of-the-file-im-editing ProblemType: Bug DistroRelease: Ubuntu 18.10 Package: vim 2:8.0.1766-1ubuntu1 ProcVersionSignature: Ubuntu 4.18.0-11.12-generic 4.18.12 Uname: Linux 4.18.0-11-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.20.10-0ubuntu13.1 Architecture: amd64 CurrentDesktop: i3 Date: Sat Dec 1 12:08:48 2018 InstallationDate: Installed on 2018-11-01 (29 days ago) InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.3) SourcePackage: vim UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: vim (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug cosmic -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to vim in Ubuntu. https://bugs.launchpad.net/bugs/1806173 Title: autodetect indentation Status in vim package in Ubuntu: New Bug description: Vim already comes with a good syntax highlighting default, but editing files with 2 space indentation is a disaster. All indentation aware editors correctly detect this setup and are able to indent and dedent lines correctly, but not vim. There are a couple of plugins that fix the issue, even though I think that it is a usability bug in vim. https://vi.stackexchange.com/questions/52/how-do-i-make-vim-adapt-to- the-current-indenting-style-of-the-file-im-editing ProblemType: Bug DistroRelease: Ubuntu 18.10 Package: vim 2:8.0.1766-1ubuntu1 ProcVersionSignature: Ubuntu 4.18.0-11.12-generic 4.18.12 Uname: Linux 4.18.0-11-generic x86_64 NonfreeKernelModules: nvidia_modeset nvidia ApportVersion: 2.20.10-0ubuntu13.1 Architecture: amd64 CurrentDesktop: i3 Date: Sat Dec 1 12:08:48 2018 InstallationDate: Installed on 2018-11-01 (29 days ago) InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.3) SourcePackage: vim UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/vim/+bug/1806173/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp