From 799cb367113a14ab0b6f32115fbae170d4485bd7 Mon Sep 17 00:00:00 2001 From: h-east Date: Sat, 20 Jun 2026 01:28:13 +0900 Subject: [PATCH] Update change.{txt,jax} --- doc/change.jax | 25 +++++++++++++------------ en/change.txt | 26 +++++++++++++------------- 2 files changed, 26 insertions(+), 25 deletions(-) diff --git a/doc/change.jax b/doc/change.jax index 85bf0c26a..5c7c82ea7 100644 --- a/doc/change.jax +++ b/doc/change.jax @@ -1,4 +1,4 @@ -*change.txt* For Vim バージョン 9.2. Last change: 2026 May 31 +*change.txt* For Vim バージョン 9.2. Last change: 2026 Jun 18 VIM リファレンスマニュアル by Bram Moolenaar @@ -1300,18 +1300,19 @@ Note 文字単位のコピーコマンドの後、コピーされたテキスト *quote_#* *quote#* 6. 代替ファイルレジスタ "# -カレントウィンドウの代替ファイルの名前を含む。これは |CTRL-^| コマンドがどのよ -うに働くかを変更する。 -このレジスタは書き込み可能で、主にプラグインがこのレジスタを変更した後で元に戻 -すためである。バッファ番号を許容する: > - let altbuf = bufnr(@#) - ... - let @# = altbuf -バッファ番号が越えるあるいはそのバッファが存在しない場合はエラー |E86| を返す。 -また存在するバッファ名でのマッチングを許容する: > +カレントウィンドウの代替ファイル名が格納される +このレジスタは書き込み可能で、CTRL-^ で切り替えるバッファを変更する。 +文字列は、|:buffer| と同様に、既存のバッファ名と照合される: > let @# = 'buffer_name' -与えられた名前にマッチしたバッファが1つより多い場合はエラー |E93| を、与えられ -た名前にマッチするバッファがない場合は |E94| を返す。 +バッファ番号と |file-pattern| の使用もサポートしている。 + +発生するエラー + |E86| バッファ番号が存在しない場合 + |E93| 複数のバッファがマッチする場合 + |E94| どのバッファもマッチしない場合 + +空の文字列を指定すると、レジスタをクリアする: > + let @# = '' 7. Expression レジスタ "= *quote_=* *quote=* *@=* これは、本当はテキストを蓄えるレジスタではないが、レジスタを使うコマンドで式を diff --git a/en/change.txt b/en/change.txt index b3448bf89..afcdca16b 100644 --- a/en/change.txt +++ b/en/change.txt @@ -1,4 +1,4 @@ -*change.txt* For Vim version 9.2. Last change: 2026 May 31 +*change.txt* For Vim version 9.2. Last change: 2026 Jun 18 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1334,19 +1334,19 @@ and ":put" commands and with CTRL-R. feature} *quote_#* *quote#* 6. Alternate file register "# -Contains the name of the alternate file for the current window. It will -change how the |CTRL-^| command works. -This register is writable, mainly to allow for restoring it after a plugin has -changed it. It accepts buffer number: > - let altbuf = bufnr(@#) - ... - let @# = altbuf -It will give error |E86| if you pass buffer number and this buffer does not -exist. -It can also accept a match with an existing buffer name: > +Contains the |alternate-file| name for current window +This register is writeable and changes which buffer CTRL-^ enters. +A String is matched against existing buffer names, like |:buffer|: > let @# = 'buffer_name' -Error |E93| if there is more than one buffer matching the given name or |E94| -if none of buffers matches the given name. +Also supports using buffer number and |file-pattern|. + +Throws + |E86| when the buffer number does not exist + |E93| when more than one buffer matches + |E94| when none match + +Clear the register with empty String: > + let @# = '' 7. Expression register "= *quote_=* *quote=* *@=* This is not really a register that stores text, but is a way to use an