annotate runtime/doc/vimdiff.man @ 33077:d03841a271aa v9.0.1825

patch 9.0.1825: wrong cursor position with virt text and 'linebreak' Commit: https://github.com/vim/vim/commit/6e55e85f92aff43c1b3cb564201440f3552d63f0 Author: zeertzjq <zeertzjq@outlook.com> Date: Wed Aug 30 16:55:09 2023 +0200 patch 9.0.1825: wrong cursor position with virt text and 'linebreak' Problem: Wrong cursor position with virtual text before a whitespace character and 'linebreak'. Solution: Always set "col_adj" to "size - 1" and apply 'linebreak' after adding the size of 'breakindent' and 'showbreak'. closes: #12956 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
author Christian Brabandt <cb@256bit.org>
date Wed, 30 Aug 2023 17:00:03 +0200
parents fd37be6dc258
children 4a958ef2dc5e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
24911
fd37be6dc258 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 1698
diff changeset
1 VIMDIFF(1) General Commands Manual VIMDIFF(1)
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 NAME
24911
fd37be6dc258 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 1698
diff changeset
6 vimdiff - edit between two and eight versions of a file with Vim and
fd37be6dc258 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 1698
diff changeset
7 show differences
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 SYNOPSIS
24911
fd37be6dc258 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 1698
diff changeset
10 vimdiff [options] file1 file2 [file3 [file4 [file5 [file6 [file7
fd37be6dc258 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 1698
diff changeset
11 [file8]]]]]]
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 gvimdiff
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 DESCRIPTION
24911
fd37be6dc258 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 1698
diff changeset
16 Vimdiff starts Vim on two up to eight files. Each file gets its own
fd37be6dc258 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 1698
diff changeset
17 window. The differences between the files are highlighted. This is a
fd37be6dc258 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 1698
diff changeset
18 nice way to inspect changes and to move changes from one version to an‐
fd37be6dc258 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 1698
diff changeset
19 other version of the same file.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 See vim(1) for details about Vim itself.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
23 When started as gvimdiff the GUI will be started, if available.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
24911
fd37be6dc258 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents: 1698
diff changeset
25 In each window the 'diff' option will be set, which causes the differ‐
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
26 ences to be highlighted.
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
27 The 'wrap' and 'scrollbind' options are set to make the text look good.
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
28 The 'foldmethod' option is set to "diff", which puts ranges of lines
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
29 without changes in a fold. 'foldcolumn' is set to two to make it easy
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
30 to spot the folds and open or close them.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 OPTIONS
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
33 Vertical splits are used to align the lines, as if the "-O" argument
376
d2bc505a6d91 updated for version 7.0098
vimboss
parents: 236
diff changeset
34 was used. To use horizontal splits instead, use the "-o" argument.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 For all other arguments see vim(1).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 SEE ALSO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 vim(1)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 AUTHOR
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
42 Most of Vim was made by Bram Moolenaar, with a lot of help from others.
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
43 See ":help credits" in Vim.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 7
diff changeset
47 2001 March 30 VIMDIFF(1)