|
1 |
| -*syntax.txt* For Vim version 9.1. Last change: 2025 Mar 15 |
| 1 | +*syntax.txt* For Vim version 9.1. Last change: 2025 Mar 21 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -3512,25 +3512,25 @@ cases pertain, then the first line of the file is examined (ex. looking for
|
3512 | 3512 | /bin/sh /bin/ksh /bin/bash). If the first line specifies a shelltype, then
|
3513 | 3513 | that shelltype is used. However some files (ex. .profile) are known to be
|
3514 | 3514 | shell files but the type is not apparent. Furthermore, on many systems sh is
|
3515 |
| -symbolically linked to "bash" (Linux, Windows+cygwin) or "ksh" (Posix). |
| 3515 | +symbolically linked to "bash" (Linux, Windows+cygwin) or "ksh" (POSIX). |
3516 | 3516 |
|
3517 | 3517 | One may specify a global default by instantiating one of the following
|
3518 | 3518 | variables in your <.vimrc>:
|
3519 | 3519 |
|
3520 | 3520 | ksh: >
|
3521 | 3521 | let g:is_kornshell = 1
|
3522 |
| -< posix: (using this is nearly the same as setting g:is_kornshell to 1) > |
| 3522 | +< posix: (default) > |
3523 | 3523 | let g:is_posix = 1
|
3524 | 3524 | < bash: >
|
3525 | 3525 | let g:is_bash = 1
|
3526 |
| -< sh: (default) Bourne shell > |
| 3526 | +< dash: > |
| 3527 | + let g:is_dash = 1 |
| 3528 | +< sh: Bourne shell > |
3527 | 3529 | let g:is_sh = 1
|
3528 | 3530 |
|
3529 |
| -< (dash users should use posix) |
3530 |
| - |
3531 | 3531 | If there's no "#! ..." line, and the user hasn't availed himself/herself of a
|
3532 | 3532 | default sh.vim syntax setting as just shown, then syntax/sh.vim will assume
|
3533 |
| -the Bourne shell syntax. No need to quote RFCs or market penetration |
| 3533 | +the POSIX shell syntax. No need to quote RFCs or market penetration |
3534 | 3534 | statistics in error reports, please -- just select the default version of the
|
3535 | 3535 | sh your system uses and install the associated "let..." in your <.vimrc>.
|
3536 | 3536 |
|
|
0 commit comments