From f7cf4bee3095ee30eee482de0553711dc485354e Mon Sep 17 00:00:00 2001 From: h-east Date: Mon, 24 Mar 2025 19:54:54 +0900 Subject: [PATCH 1/2] Update version9.{txt,jax} --- doc/version9.jax | 7 ++++++- en/version9.txt | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/doc/version9.jax b/doc/version9.jax index f527247db..13908dbec 100644 --- a/doc/version9.jax +++ b/doc/version9.jax @@ -1,4 +1,4 @@ -*version9.txt* For Vim バージョン 9.1. Last change: 2025 Mar 21 +*version9.txt* For Vim バージョン 9.1. Last change: 2025 Mar 23 VIMリファレンスマニュアル by Bram Moolenaar @@ -41564,6 +41564,8 @@ XDG デスクトップ仕様 |xdg-base-dir| のサポート 'diffopt' 設定に "linematch" アルゴリズムを含める。これにより、類似の行のバッ ファ間の変更が揃えられ、Vim での diff のハイライトが改善される +Vim script および Vim9 script での |Tuple| データ型のサポート。 + *changed-9.2* 変更点~ ------ @@ -41668,11 +41670,14 @@ Ex コマンド: ~ |getstacktrace()| Vim script の現在のスタックトレースを取得する |id()| Dict、List、Object、Channel、または Blob 変数の一意の 識別子を取得 +|list2tuple()| 項目のリストを Tuple に変換する |matchbufline()| バッファ内のすべてのパターンのマッチ |matchstrlist()| 文字列のリスト内のすべてのパターンのマッチ |ngettext()| 単一/複数の翻訳メッセージの検索 |popup_setbuf()| ポップアップを別のバッファに切り替える |str2blob()| 文字列のリストを blob に変換する +|test_null_tuple()| null の tuple を返す +|tuple2list()| Tuple の項目をリストに変換する 自動コマンド: ~ diff --git a/en/version9.txt b/en/version9.txt index 377ab2ae0..4f0da43a3 100644 --- a/en/version9.txt +++ b/en/version9.txt @@ -1,4 +1,4 @@ -*version9.txt* For Vim version 9.1. Last change: 2025 Mar 21 +*version9.txt* For Vim version 9.1. Last change: 2025 Mar 23 VIM REFERENCE MANUAL by Bram Moolenaar @@ -41574,6 +41574,8 @@ Include the "linematch" algorithm for the 'diffopt' setting. This aligns changes between buffers on similar lines improving the diff highlighting in Vim +Support for the |Tuple| data type in Vim script and Vim9 script. + *changed-9.2* Changed~ ------- @@ -41677,11 +41679,14 @@ Functions: ~ |getstacktrace()| get current stack trace of Vim scripts |id()| get unique identifier for a Dict, List, Object, Channel or Blob variable +|list2tuple()| turn a List of items into a Tuple |matchbufline()| all the matches of a pattern in a buffer |matchstrlist()| all the matches of a pattern in a List of strings |ngettext()| lookup single/plural message translation |popup_setbuf()| switch to a different buffer in a popup |str2blob()| convert a List of strings into a blob +|test_null_tuple()| return a null tuple +|tuple2list()| turn a Tuple of items into a List Autocommands: ~ From 95b94e73337be5c2fc942e715f96937caa91a14b Mon Sep 17 00:00:00 2001 From: h-east Date: Fri, 28 Mar 2025 21:29:30 +0900 Subject: [PATCH 2/2] Update by original --- doc/version9.jax | 16 +++++++++++----- en/version9.txt | 21 ++++++++++++++------- 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/doc/version9.jax b/doc/version9.jax index 13908dbec..b9a3c958d 100644 --- a/doc/version9.jax +++ b/doc/version9.jax @@ -1,4 +1,4 @@ -*version9.txt* For Vim バージョン 9.1. Last change: 2025 Mar 23 +*version9.txt* For Vim バージョン 9.1. Last change: 2025 Mar 27 VIMリファレンスマニュアル by Bram Moolenaar @@ -41545,6 +41545,14 @@ Vim9 script の列挙型サポート |:enum| protected _new() メソッドのサポート +差分モード~ +----------- +'diffopt' 設定に "linematch" アルゴリズムを含める。これにより、類似の行のバッ +ファ間の変更が揃えられ、Vim での diff のハイライトが改善される + +行内の変更の差分ハイライトを改善する。'diffopt' 設定の "inline" サブオプション +値を使用して構成可能で、"inline:simple" がデフォルトの "diffopt" 値に追加され +る (ただし、これは差分モードの動作を変更しない)。 *new-other-9.2* その他の新機能 ~ -------------- @@ -41561,9 +41569,6 @@ XDG デスクトップ仕様 |xdg-base-dir| のサポート |ins-completion-menu| で、挿入モード補完とコマンドライン補完の一致したテキスト と補完の種類のハイライトをサポートする。|complete-items| を参照 -'diffopt' 設定に "linematch" アルゴリズムを含める。これにより、類似の行のバッ -ファ間の変更が揃えられ、Vim での diff のハイライトが改善される - Vim script および Vim9 script での |Tuple| データ型のサポート。 *changed-9.2* @@ -41580,7 +41585,6 @@ Vim script および Vim9 script での |Tuple| データ型のサポート。 - 'keyprotocol' オプションのデフォルト値は、ghostty 端末エミュレータ (kitty プ ロトコルを使用) のサポートにより更新された - 補完: ~ - |:cd| や同様のコマンドで 'cdpath' からディレクトリを補完できるように、 |:command-complete| や |getcompletion()| 等に "cd_in_path" 補完タイプを追加 @@ -41612,6 +41616,7 @@ Vim script および Vim9 script での |Tuple| データ型のサポート。 - 'rulerformat' は |stl-%!| 項目をサポートするようになった - ページ単位のスクロールには CTRL-F / CTRL-B で、また、半ページ単位のスクロー ルには CTRL-D / CTRL-U で 'smoothscroll' ロジックを使用する。 +- 'pummaxwidth' 補完ポップアップメニューの最大幅 Ex コマンド: ~ - 新しい目印を定義するときに優先順位を指定できるようにする |:sign-define| @@ -41693,6 +41698,7 @@ Ex コマンド: ~ ハイライト: ~ |hl-ComplMatchIns| 現在挿入されている補完にマッチするテキスト +|hl-DiffTextAdd| 変更された行に追加されたテキスト |hl-MsgArea| コマンドラインとメッセージ領域のハイライト |hl-PmenuMatch| ポップアップメニュー: マッチしたテキストのハイライト |hl-PmenuMatchSel| ポップアップメニュー: 選択された行のマッチしたテキスト diff --git a/en/version9.txt b/en/version9.txt index 4f0da43a3..0e9a5080f 100644 --- a/en/version9.txt +++ b/en/version9.txt @@ -1,4 +1,4 @@ -*version9.txt* For Vim version 9.1. Last change: 2025 Mar 23 +*version9.txt* For Vim version 9.1. Last change: 2025 Mar 27 VIM REFERENCE MANUAL by Bram Moolenaar @@ -41553,6 +41553,16 @@ Enum support for Vim9 script |:enum| Support for protected _new() method +Diff mode ~ +--------- +Include the "linematch" algorithm for the 'diffopt' setting. This aligns +changes between buffers on similar lines improving the diff highlighting in +Vim + +Improve the diff highlighting for changes within a line. Configurable using +the "inline" sub option value for the 'diffopt' setting, with "inline:simple" +being added to the default "diffopt" value (but this does not change how diff +mode works). *new-other-9.2* Other new features ~ ------------------ @@ -41570,10 +41580,6 @@ Support highlighting the matched text and the completion kind for insert-mode completion and command-line completion in |ins-completion-menu|, see |complete-items| -Include the "linematch" algorithm for the 'diffopt' setting. This aligns -changes between buffers on similar lines improving the diff highlighting in -Vim - Support for the |Tuple| data type in Vim script and Vim9 script. *changed-9.2* @@ -41590,7 +41596,6 @@ Default values: ~ - the default value of the 'keyprotocol' option has been updated and support for the ghostty terminal emulator (using kitty protocol) has been added - Completion: ~ - allow to complete directories from 'cdpath' for |:cd| and similar commands, add the "cd_in_path" completion type for e.g. |:command-complete| and @@ -41622,6 +41627,7 @@ Options: ~ - 'rulerformat' now supports the |stl-%!| item - use 'smoothscroll' logic for CTRL-F / CTRL-B for pagewise scrolling and CTRL-D / CTRL-U for half-pagewise scrolling +- 'pummaxwidth' maximum width for the completion popup menu Ex commands: ~ - allow to specify a priority when defining a new sign |:sign-define| @@ -41702,7 +41708,8 @@ Autocommands: ~ Highlighting: ~ -|hl-ComplMatchIns| matched text of the currently inserted completion. +|hl-ComplMatchIns| matched text of the currently inserted completion +|hl-DiffTextAdd| added text within a changed line |hl-MsgArea| highlighting of the Command-line and messages area |hl-PmenuMatch| Popup menu: highlighting of matched text |hl-PmenuMatchSel| Popup menu: highlighting of matched text in selected