comparison runtime/doc/usr_05.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 *usr_05.txt* For Vim version 7.0c. Last change: 2006 Mar 24 1 *usr_05.txt* For Vim version 7.0c. Last change: 2006 Apr 02
2 2
3 VIM USER MANUAL - by Bram Moolenaar 3 VIM USER MANUAL - by Bram Moolenaar
4 4
5 Set your settings 5 Set your settings
6 6
23 23
24 ============================================================================== 24 ==============================================================================
25 *05.1* The vimrc file *vimrc-intro* 25 *05.1* The vimrc file *vimrc-intro*
26 26
27 You probably got tired of typing commands that you use very often. To start 27 You probably got tired of typing commands that you use very often. To start
28 with all your favorite option settings and mappings, you write them in what is 28 Vim with all your favorite option settings and mappings, you write them in
29 called the vimrc file. Vim reads this file when it starts up. 29 what is called the vimrc file. Vim executes the commands in this file when it
30 30 starts up.
31 If you have trouble finding your vimrc file, use this command: > 31
32 32 If you already have a vimrc file (e.g., when your sysadmin has one setup for
33 :scriptnames 33 you), you can edit it this way: >
34 34
35 One of the first files in the list should be called ".vimrc" or "_vimrc" and 35 :edit $MYVIMRC
36 is located in your home directory. 36
37 If you don't have a vimrc file yet, see |vimrc| to find out where you can 37 If you don't have a vimrc file yet, see |vimrc| to find out where you can
38 create a vimrc file. Also, the ":version" command mentions the name of the 38 create a vimrc file. Also, the ":version" command mentions the name of the
39 "user vimrc file" Vim looks for. 39 "user vimrc file" Vim looks for.
40 40
41 For Unix this file is always used: > 41 For Unix and Macintosh this file is always used and is recommended:
42 42
43 ~/.vimrc 43 ~/.vimrc ~
44 44
45 For MS-DOS and MS-Windows it is mostly one of these: > 45 For MS-DOS and MS-Windows you can use one of these:
46 46
47 $HOME/_vimrc 47 $HOME/_vimrc ~
48 $VIM/_vimrc 48 $VIM/_vimrc ~
49 49
50 The vimrc file can contain all the commands that you type after a colon. The 50 The vimrc file can contain all the commands that you type after a colon. The
51 most simple ones are for setting options. For example, if you want Vim to 51 most simple ones are for setting options. For example, if you want Vim to
52 always start with the 'incsearch' option on, add this line you your vimrc 52 always start with the 'incsearch' option on, add this line you your vimrc
53 file: > 53 file: >