Skip to content
Open
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
25 changes: 13 additions & 12 deletions doc/change.jax
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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=* *@=*
これは、本当はテキストを蓄えるレジスタではないが、レジスタを使うコマンドで式を
Expand Down
26 changes: 13 additions & 13 deletions en/change.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down