See the last command mentioned here :h shift-left-right :[range]> {count} [flags] So for your example :40> 21 Alternatively, if you don't want to do any arithmetic in your head: :40,60>


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 ...

Only top voted, non community-wiki answers of a minimum length are eligible