comparison runtime/doc/syntax.txt @ 828:01583c79d5f4 v7.0d03

updated for version 7.0d03
author vimboss
date Thu, 13 Apr 2006 20:37:35 +0000
parents 6675076019ae
children dc8197342755
comparison
equal deleted inserted replaced
827:fd1b3406fd1c 828:01583c79d5f4
2314 < 2314 <
2315 If none of these cases pertain, then the first line of the file is examined 2315 If none of these cases pertain, then the first line of the file is examined
2316 (ex. /bin/sh /bin/ksh /bin/bash). If the first line specifies a shelltype, 2316 (ex. /bin/sh /bin/ksh /bin/bash). If the first line specifies a shelltype,
2317 then that shelltype is used. However some files (ex. .profile) are known to 2317 then that shelltype is used. However some files (ex. .profile) are known to
2318 be shell files but the type is not apparent. Furthermore, on many systems 2318 be shell files but the type is not apparent. Furthermore, on many systems
2319 sh is symbolically linked to "bash" (linux) or "ksh" (posix). 2319 sh is symbolically linked to "bash" (Linux, Windows+cygwin) or "ksh" (Posix).
2320 2320
2321 One may specify a global default by instantiating one of the following three 2321 One may specify a global default by instantiating one of the following three
2322 variables in your <.vimrc>: 2322 variables in your <.vimrc>:
2323 2323
2324 ksh: > 2324 ksh: >
2325 let is_kornshell = 1 2325 let g:is_kornshell = 1
2326 < posix: (using this is the same as setting is_kornshell to 1) >
2327 let g:is_posix = 1
2326 < bash: > 2328 < bash: >
2327 let is_bash = 1 2329 let g:is_bash = 1
2328 < sh: > 2330 < sh: (default) Borne shell >
2329 let is_sh = 1 2331 let g:is_sh = 1
2330 2332
2331 If there's no "#! ..." line, and the user hasn't availed himself/herself of a 2333 If there's no "#! ..." line, and the user hasn't availed himself/herself of a
2332 default sh.vim syntax setting as just shown, then syntax/sh.vim will assume 2334 default sh.vim syntax setting as just shown, then syntax/sh.vim will assume
2333 the Borne shell syntax. No need to quote RFCs or market penetration 2335 the Borne shell syntax. No need to quote RFCs or market penetration
2334 statistics in error reports, please. 2336 statistics in error reports, please -- just select the default version of
2337 the sh your system uses in your <.vimrc>.
2335 2338
2336 If, in your <.vimrc>, you set > 2339 If, in your <.vimrc>, you set >
2337 let g:sh_fold_enabled= 1 2340 let g:sh_fold_enabled= 1
2338 > 2341 >
2339 then various syntax items (HereDocuments and function bodies) become 2342 then various syntax items (HereDocuments and function bodies) become