diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-05-13 08:40:06 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-13 08:40:06 +0800 |
commit | f76e1ac92eda9cb364a9de49422b45a035256ca6 (patch) | |
tree | 6cc375a9410c04d21392e5877513de831cf2f81f /runtime | |
parent | a6d63591f1fc61d570b646306d7c259b5ec2cace (diff) | |
download | rneovim-f76e1ac92eda9cb364a9de49422b45a035256ca6.tar.gz rneovim-f76e1ac92eda9cb364a9de49422b45a035256ca6.tar.bz2 rneovim-f76e1ac92eda9cb364a9de49422b45a035256ca6.zip |
vim-patch:9.0.1546: some commands for opening a file don't use 'switchbuf' (#23600)
Problem: Some commands for opening a file don't use 'switchbuf'.
Solution: Use 'switchbuf' for more commands. (Yegappan Lakshmanan,
closes vim/vim#12383, closes vim/vim#12381)
https://github.com/vim/vim/commit/54be5fb382d2bf25fd1b17ddab8b21f599019b81
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/options.txt | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index c87b6f1835..934e3353fa 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -6201,16 +6201,18 @@ A jump table for the options with a short description can be found at |Q_op|. 'switchbuf' 'swb' string (default "uselast") global This option controls the behavior when switching between buffers. - Mostly for |quickfix| commands some values are also used for other - commands, as mentioned below. + This option is checked, when + - jumping to errors with the |quickfix| commands (|:cc|, |:cn|, |:cp|, + etc.) + - jumping to a tag using the |:stag| command. + - opening a file using the |CTRL-W_f| or |CTRL-W_F| command. + - jumping to a buffer using a buffer split command (e.g. |:sbuffer|, + |:sbnext|, or |:sbrewind|). Possible values (comma-separated list): - useopen If included, jump to the first open window that - contains the specified buffer (if there is one). - Otherwise: Do not examine other windows. - This setting is checked with |quickfix| commands, when - jumping to errors (":cc", ":cn", "cp", etc.). It is - also used in all buffer related split commands, for - example ":sbuffer", ":sbnext", or ":sbrewind". + useopen If included, jump to the first open window in the + current tab page that contains the specified buffer + (if there is one). Otherwise: Do not examine other + windows. usetab Like "useopen", but also consider windows in other tab pages. split If included, split the current window before loading |