summaryrefslogtreecommitdiff
path: root/runtime/doc/change.txt
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-11-22 03:08:29 +0100
committerBram Moolenaar <Bram@vim.org>2018-11-22 03:08:29 +0100
commitf951416a8396a54bbbe21de1a8b16716428549f2 (patch)
tree2903bb024e534d4a4c5004beef72f4dc38583b29 /runtime/doc/change.txt
parent2b84949ad8f247e5d142e2fb1371b3e37567977a (diff)
downloadvim-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.txt8
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.