diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-11-22 03:08:29 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-11-22 03:08:29 +0100 |
commit | f951416a8396a54bbbe21de1a8b16716428549f2 (patch) | |
tree | 2903bb024e534d4a4c5004beef72f4dc38583b29 /runtime/doc/change.txt | |
parent | 2b84949ad8f247e5d142e2fb1371b3e37567977a (diff) | |
download | vim-git-f951416a8396a54bbbe21de1a8b16716428549f2.tar.gz |
patch 8.1.0542: shiftwidth() does not take 'vartabstop' into accountv8.1.0542
Problem: shiftwidth() does not take 'vartabstop' into account.
Solution: Use the cursor position or a position explicitly passed.
Also make >> and << work better with 'vartabstop'. (Christian
Brabandt)
Diffstat (limited to 'runtime/doc/change.txt')
-rw-r--r-- | runtime/doc/change.txt | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt index d6b0242d2..dc3a23c59 100644 --- a/runtime/doc/change.txt +++ b/runtime/doc/change.txt @@ -476,6 +476,10 @@ SHIFTING LINES LEFT OR RIGHT *shift-left-right* *<* <{motion} Shift {motion} lines one 'shiftwidth' leftwards. + If the 'vartabstop' feature is enabled, and the + 'shiftwidth' option is set to zero, the amount of + indent is calculated at the first non-blank character + in the line. *<<* << Shift [count] lines one 'shiftwidth' leftwards. @@ -487,6 +491,10 @@ SHIFTING LINES LEFT OR RIGHT *shift-left-right* *>* >{motion} Shift {motion} lines one 'shiftwidth' rightwards. + If the 'vartabstop' feature is enabled, and the + 'shiftwidth' option is set to zero, the amount of + indent is calculated at the first non-blank character + in the line. *>>* >> Shift [count] lines one 'shiftwidth' rightwards. |