comparison runtime/doc/starting.txt @ 819:23f82b5d2814 v7.0c10

updated for version 7.0c10
author vimboss
date Wed, 05 Apr 2006 20:41:53 +0000
parents 9f345c48220b
children 6675076019ae
comparison
equal deleted inserted replaced
818:1f929f3ca806 819:23f82b5d2814
1 *starting.txt* For Vim version 7.0c. Last change: 2006 Mar 26 1 *starting.txt* For Vim version 7.0c. Last change: 2006 Apr 02
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
411 GUI: Do not disconnect from the program that started Vim. 411 GUI: Do not disconnect from the program that started Vim.
412 'f' stands for "foreground". If omitted, the GUI forks a new 412 'f' stands for "foreground". If omitted, the GUI forks a new
413 process and exits the current one. "-f" should be used when 413 process and exits the current one. "-f" should be used when
414 gvim is started by a program that will wait for the edit 414 gvim is started by a program that will wait for the edit
415 session to finish (e.g., mail or readnews). If you want gvim 415 session to finish (e.g., mail or readnews). If you want gvim
416 never to fork, include 'f' in 'guioptions' in your .gvimrc. 416 never to fork, include 'f' in 'guioptions' in your |gvimrc|.
417 Careful: You can use "-gf" to start the GUI in the foreground, 417 Careful: You can use "-gf" to start the GUI in the foreground,
418 but "-fg" is used to specify the foreground color. |gui-fork| 418 but "-fg" is used to specify the foreground color. |gui-fork|
419 {not in Vi} 419 {not in Vi}
420 420
421 *--nofork* 421 *--nofork*
428 this easy to use. For example: > 428 this easy to use. For example: >
429 alias vimc vim -u ~/.c_vimrc !* 429 alias vimc vim -u ~/.c_vimrc !*
430 < Also consider using autocommands; see |autocommand|. 430 < Also consider using autocommands; see |autocommand|.
431 When {vimrc} is equal to "NONE" (all uppercase), all 431 When {vimrc} is equal to "NONE" (all uppercase), all
432 initializations from files and environment variables are 432 initializations from files and environment variables are
433 skipped, including reading the .gvimrc file when the GUI 433 skipped, including reading the |gvimrc| file when the GUI
434 starts. Loading plugins is also skipped. 434 starts. Loading plugins is also skipped.
435 When {vimrc} is equal to "NORC" (all uppercase), this has the 435 When {vimrc} is equal to "NORC" (all uppercase), this has the
436 same effect as "NONE", but loading plugins is not skipped. 436 same effect as "NONE", but loading plugins is not skipped.
437 Using the "-u" argument has the side effect that the 437 Using the "-u" argument has the side effect that the
438 'compatible' option will be on by default. This can have 438 'compatible' option will be on by default. This can have
439 unexpected effects. See |'compatible'|. 439 unexpected effects. See |'compatible'|.
440 {not in Vi} 440 {not in Vi}
441 441
442 *-U* *E230* 442 *-U* *E230*
443 -U {gvimrc} The file "gvimrc" is read for initializations when the GUI 443 -U {gvimrc} The file {gvimrc} is read for initializations when the GUI
444 starts. Other GUI initializations are skipped. When {gvimrc} 444 starts. Other GUI initializations are skipped. When {gvimrc}
445 is equal to "NONE", no file is read for GUI initializations at 445 is equal to "NONE", no file is read for GUI initializations at
446 all. |gui-init| 446 all. |gui-init|
447 Exception: Reading the system-wide menu file is always done. 447 Exception: Reading the system-wide menu file is always done.
448 {not in Vi} 448 {not in Vi}
759 nocp" command if you like. 759 nocp" command if you like.
760 For the Macintosh the $VIMRUNTIME/macmap.vim is read. 760 For the Macintosh the $VIMRUNTIME/macmap.vim is read.
761 761
762 *VIMINIT* *.vimrc* *_vimrc* *EXINIT* *.exrc* *_exrc* 762 *VIMINIT* *.vimrc* *_vimrc* *EXINIT* *.exrc* *_exrc*
763 c. Four places are searched for initializations. The first that exists 763 c. Four places are searched for initializations. The first that exists
764 is used, the others are ignored. 764 is used, the others are ignored. The $MYVIMRC environment variable is
765 set to the file that was first found, unless $MYVIMRC was already set.
765 - The environment variable VIMINIT (see also |compatible-default|) (*) 766 - The environment variable VIMINIT (see also |compatible-default|) (*)
766 The value of $VIMINIT is used as an Ex command line. 767 The value of $VIMINIT is used as an Ex command line.
767 - The user vimrc file(s): 768 - The user vimrc file(s):
768 "$HOME/.vimrc" (for Unix and OS/2) (*) 769 "$HOME/.vimrc" (for Unix and OS/2) (*)
769 "s:.vimrc" (for Amiga) (*) 770 "s:.vimrc" (for Amiga) (*)
903 set, it will be set to 'nocompatible'. This has the side effect of setting or 904 set, it will be set to 'nocompatible'. This has the side effect of setting or
904 resetting other options (see 'compatible'). But only the options that have 905 resetting other options (see 'compatible'). But only the options that have
905 not been set or reset will be changed. This has the same effect like the 906 not been set or reset will be changed. This has the same effect like the
906 value of 'compatible' had this value when starting Vim. Note that this 907 value of 'compatible' had this value when starting Vim. Note that this
907 doesn't happen for the system-wide vimrc file. It does also happen for gvimrc 908 doesn't happen for the system-wide vimrc file. It does also happen for gvimrc
908 files. 909 files. The $MYVIMRC or $MYGVIMRC file will be set to the first found vimrc
910 and/or gvimrc file.
909 911
910 But there is a side effect of setting or resetting 'compatible' at the moment 912 But there is a side effect of setting or resetting 'compatible' at the moment
911 a .vimrc file is found: Mappings are interpreted the moment they are 913 a .vimrc file is found: Mappings are interpreted the moment they are
912 encountered. This makes a difference when using things like "<CR>". If the 914 encountered. This makes a difference when using things like "<CR>". If the
913 mappings depend on a certain value of 'compatible', set or reset it before 915 mappings depend on a certain value of 'compatible', set or reset it before