Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update options.{txt,jax} #1898

Merged
merged 1 commit into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions doc/options.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*options.txt* For Vim バージョン 9.1. Last change: 2024 Dec 14
*options.txt* For Vim バージョン 9.1. Last change: 2024 Dec 28


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -5124,11 +5124,12 @@ Note 1番目の形式では、行全体がオプション指定に使われる
オプションの値は、コンマで区切られた項目のリストである。各項目は、
'term' オプションとマッチするパターン、コロン、使用されるプロトコル名
を持つ。これを説明するために、デフォルト値を次のように設定する: >
set keyprotocol=kitty:kitty,foot:kitty,wezterm:kitty,xterm:mok2
set keyprotocol=kitty:kitty,foot:kitty,ghostty:kitty,wezterm:kitty
set keyprotocol+=xterm:mok2

< つまり、'term' のどこかに "kitty", "foot", "wezterm" が含まれている場
合は、"kitty" プロトコルが使われる。'term' のどこかに "xterm" が含まれ
ている場合は、"mok2" プロトコルが使われる。
< つまり、'term' のどこかに "kitty", "foot", "ghostty", "wezterm" が含ま
れている場合は、"kitty" プロトコルが使われる。'term' のどこかに
"xterm" が含まれている場合は、"mok2" プロトコルが使われる。

最初にマッチしたものが使用されるので、"kitty" には kitty プロトコルを
使用させたいが、"badkitty" には使用させたくない場合は、まず "badkitty"
Expand Down
11 changes: 6 additions & 5 deletions en/options.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*options.txt* For Vim version 9.1. Last change: 2024 Dec 14
*options.txt* For Vim version 9.1. Last change: 2024 Dec 28


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -5072,11 +5072,12 @@ A jump table for the options with a short description can be found at |Q_op|.
a pattern that is matched against the 'term' option, a colon and the
protocol name to be used. To illustrate this, the default value would
be set with: >
set keyprotocol=kitty:kitty,foot:kitty,wezterm:kitty,xterm:mok2
set keyprotocol=kitty:kitty,foot:kitty,ghostty:kitty,wezterm:kitty
set keyprotocol+=xterm:mok2

< This means that when 'term' contains "kitty, "foot" or "wezterm"
somewhere then the "kitty" protocol is used. When 'term' contains
"xterm" somewhere, then the "mok2" protocol is used.
< This means that when 'term' contains "kitty, "foot", "ghostty" or
"wezterm" somewhere, then the "kitty" protocol is used. When 'term'
contains "xterm" somewhere, then the "mok2" protocol is used.

The first match is used, thus if you want to have "kitty" use the
kitty protocol, but "badkitty" not, then you should match "badkitty"
Expand Down
Loading