diff --git a/doc/syntax.jax b/doc/syntax.jax index fbe949deb..07945e1f9 100644 --- a/doc/syntax.jax +++ b/doc/syntax.jax @@ -1,4 +1,4 @@ -*syntax.txt* For Vim バージョン 9.1. Last change: 2025 Mar 15 +*syntax.txt* For Vim バージョン 9.1. Last change: 2025 Mar 21 VIMリファレンスマニュアル by Bram Moolenaar @@ -3405,7 +3405,7 @@ Vimは様々なファイル名がどのタイプであるかを指定するこ /bin/sh /bin/ksh /bin/bash を探す)。第一行でシェルを指定されていれば、そのシェ ルが使用される。しかしいくつかのファイル(例. .profile)はシェルファイルであるこ とはわかっていても、どのタイプか明らかではない。さらに、多くのシステムでshは -"bash" (Linux, Windows+cygwin) や "ksh" (Posix) へのシンボリックリンクになって +"bash" (Linux, Windows+cygwin) や "ksh" (POSIX) へのシンボリックリンクになって いる。 以下の変数のどれかを.vimrcで定義することにより、デフォルトを設定すること @@ -3413,17 +3413,17 @@ Vimは様々なファイル名がどのタイプであるかを指定するこ ksh: > let g:is_kornshell = 1 -< posix: (これは g:is_kornshell に1を設定することとほぼ同じ) > +< posix: (デフォルト) > let g:is_posix = 1 < bash: > let g:is_bash = 1 -< sh: (デフォルト) Bourne shell > +< dash: > + let g:is_dash = 1 +< sh: Bourne shell > let g:is_sh = 1 -< (dash 使用者は posix を使用するべき) - "#! ..." という行がなく、かつユーザーが上の方法でデフォルトの sh.vim の構文を -設定していない場合、sh.vim は Bourne シェルの構文であると仮定する。エラーレポー +設定していない場合、sh.vim は POSIX シェルの構文であると仮定する。エラーレポー トで RFC や市場浸透統計を引用する必要はありません。ただただ、デフォルトでシス テムに使用されるバージョンのシェルを選択し、それに対応する "let..." をあなたの .vimrc に導入してください。 diff --git a/en/syntax.txt b/en/syntax.txt index a44b6f62b..fe6865e17 100644 --- a/en/syntax.txt +++ b/en/syntax.txt @@ -1,4 +1,4 @@ -*syntax.txt* For Vim version 9.1. Last change: 2025 Mar 15 +*syntax.txt* For Vim version 9.1. Last change: 2025 Mar 21 VIM REFERENCE MANUAL by Bram Moolenaar @@ -3512,25 +3512,25 @@ cases pertain, then the first line of the file is examined (ex. looking for /bin/sh /bin/ksh /bin/bash). If the first line specifies a shelltype, then that shelltype is used. However some files (ex. .profile) are known to be shell files but the type is not apparent. Furthermore, on many systems sh is -symbolically linked to "bash" (Linux, Windows+cygwin) or "ksh" (Posix). +symbolically linked to "bash" (Linux, Windows+cygwin) or "ksh" (POSIX). One may specify a global default by instantiating one of the following variables in your <.vimrc>: ksh: > let g:is_kornshell = 1 -< posix: (using this is nearly the same as setting g:is_kornshell to 1) > +< posix: (default) > let g:is_posix = 1 < bash: > let g:is_bash = 1 -< sh: (default) Bourne shell > +< dash: > + let g:is_dash = 1 +< sh: Bourne shell > let g:is_sh = 1 -< (dash users should use posix) - If there's no "#! ..." line, and the user hasn't availed himself/herself of a default sh.vim syntax setting as just shown, then syntax/sh.vim will assume -the Bourne shell syntax. No need to quote RFCs or market penetration +the POSIX shell syntax. No need to quote RFCs or market penetration statistics in error reports, please -- just select the default version of the sh your system uses and install the associated "let..." in your <.vimrc>.