Skip to content

Commit f44f3b2

Browse files
committed
Update builtin.{txt,jax}
1 parent 77aa561 commit f44f3b2

File tree

2 files changed

+48
-22
lines changed

2 files changed

+48
-22
lines changed

doc/builtin.jax

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim バージョン 9.1. Last change: 2025 Aug 06
1+
*builtin.txt* For Vim バージョン 9.1. Last change: 2025 Aug 08
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -1832,17 +1832,26 @@ charidx({string}, {idx} [, {countcc} [, {utf16}]])
18321832
戻り値の型: |Number|
18331833

18341834

1835-
chdir({dir}) *chdir()*
1835+
chdir({dir} [, {scope}]) *chdir()*
1836+
現在の作業ディレクトリを {dir} に変更する。変更するスコープは
1837+
以下のように決定される:
1838+
{scope} が指定されていない場合、現在の作業ディレクトリは現在の
1839+
ディレクトリのスコープに変更される:
1840+
- ウィンドウローカルディレクトリ (|:lcd|) が設定されている
1841+
場合、そのスコープの現在の作業ディレクトリを変更する。
1842+
- タブページローカルディレクトリ (|:tcd|) が設定されている
1843+
場合、そのスコープの現在のディレクトリを変更する。
1844+
- それ以外の場合は、グローバルディレクトリを変更する。
1845+
1846+
{scope} が指定された場合、指定されたスコープの現在の作業ディレ
1847+
クトリを変更する:
1848+
"window" ウィンドウローカルディレクトリを変更する。
1849+
|:lcd|
1850+
"tabpage" タブページローカルディレクトリを変更する。
1851+
|:tcd|
1852+
"global" グローバルディレクトリを変更する。 |:cd|
1853+
18361854
{dir}は文字列でなければならない。
1837-
現在の作業ディレクトリを {dir} に変更する。ディレクトリの変更
1838-
範囲は、カレントウィンドウのディレクトリによって異なる:
1839-
- カレントウィンドウにウィンドウローカルディレクトリ
1840-
(|:lcd|)がある場合は、ウィンドウローカルディレクトリ
1841-
を変更する。
1842-
- それ以外の場合、カレントタブページにローカルディレク
1843-
トリ(|:tcd|)がある場合は、タブページのローカルディレ
1844-
クトリを変更する。
1845-
- それ以外の場合、グローバルディレクトリを変更する。
18461855
成功した場合は、前の作業ディレクトリを返す。ディレクトリを復元
18471856
するには、これを別の chdir() に渡すこと。
18481857
失敗した場合は、空の文字列を返す。
@@ -12091,6 +12100,11 @@ wildtrigger() *wildtrigger()*
1209112100
通常の履歴ナビゲーションを維持するには (上/下キー): >
1209212101
cnoremap <Up> <C-U><Up>
1209312102
cnoremap <Down> <C-U><Down>
12103+
<
12104+
検索を実行するときにオプションを具体的に設定するには、例えば、
12105+
'pumheights' を設定する: >
12106+
autocmd CmdlineEnter [/\?] set pumheight=8
12107+
autocmd CmdlineLeave [/\?] set pumheight&
1209412108
<
1209512109
戻り値は常に 0 である。
1209612110

en/builtin.txt

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim version 9.1. Last change: 2025 Aug 06
1+
*builtin.txt* For Vim version 9.1. Last change: 2025 Aug 08
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1783,16 +1783,23 @@ charidx({string}, {idx} [, {countcc} [, {utf16}]])
17831783
Return type: |Number|
17841784

17851785

1786-
chdir({dir}) *chdir()*
1787-
Change the current working directory to {dir}. The scope of
1788-
the directory change depends on the directory of the current
1789-
window:
1790-
- If the current window has a window-local directory
1791-
(|:lcd|), then changes the window local directory.
1792-
- Otherwise, if the current tabpage has a local
1793-
directory (|:tcd|) then changes the tabpage local
1794-
directory.
1795-
- Otherwise, changes the global directory.
1786+
chdir({dir} [, {scope}]) *chdir()*
1787+
Changes the current working directory to {dir}. The scope of
1788+
the change is determined as follows:
1789+
If {scope} is not present, the current working directory is
1790+
changed to the scope of the current directory:
1791+
- If the window local directory (|:lcd|) is set, it
1792+
changes the current working directory for that scope.
1793+
- Otherwise, if the tab page local directory (|:tcd|) is
1794+
set, it changes the current directory for that scope.
1795+
- Otherwise, changes the global directory for that scope.
1796+
1797+
If {scope} is present, changes the current working directory
1798+
for the specified scope:
1799+
"window" Changes the window local directory. |:lcd|
1800+
"tabpage" Changes the tab page local directory. |:tcd|
1801+
"global" Changes the global directory. |:cd|
1802+
17961803
{dir} must be a String.
17971804
If successful, returns the previous working directory. Pass
17981805
this to another chdir() to restore the directory.
@@ -12353,6 +12360,11 @@ wildtrigger() *wildtrigger()*
1235312360
To retain normal history navigation (up/down keys): >
1235412361
cnoremap <Up> <C-U><Up>
1235512362
cnoremap <Down> <C-U><Down>
12363+
<
12364+
To set an option specifically when performing a search, e.g.
12365+
to set 'pumheight': >
12366+
autocmd CmdlineEnter [/\?] set pumheight=8
12367+
autocmd CmdlineLeave [/\?] set pumheight&
1235612368
<
1235712369
Return value is always 0.
1235812370

0 commit comments

Comments
 (0)