New answers tagged

1

This is controlled by shiftwidth set sw=4


0

As of Vim 8.2.0139, there are no configuration options to specify this behaviour. Furthermore, any changes to the behaviour of Vim's soft wrapping via 'wrap' will require implementing in the source code: there is no workaround possible by using Vimscript.* See the feature request that Ryan Lue (who asked this question) added to the Vim project's issue ...


1

A solution that's more internal to vim, is to override indentexpr with a custom indent expression (most likely just overriding the builtin indentexpr for your specific instance). The steps: define a filetype override, either in an autocmd (group) or in a ftplugin override (preferred). define a new (global, i.e. starting with a capital letter) function, say ...


Top 50 recent answers are included