comparison runtime/doc/starting.txt @ 8148:f5da459c5698

commit https://github.com/vim/vim/commit/e0fa3742ead676a3074a10edadbc955e1a89153d Author: Bram Moolenaar <Bram@vim.org> Date: Sat Feb 20 15:47:01 2016 +0100 Updated runtime files.
author Christian Brabandt <cb@256bit.org>
date Sat, 20 Feb 2016 16:00:06 +0100
parents 0efec12f52ac
children 95d59081580f
comparison
equal deleted inserted replaced
8147:da6300d5a13b 8148:f5da459c5698
1 *starting.txt* For Vim version 7.4. Last change: 2014 Jul 09 1 *starting.txt* For Vim version 7.4. Last change: 2016 Feb 18
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
10 2. Vim on the Amiga |starting-amiga| 10 2. Vim on the Amiga |starting-amiga|
11 3. Running eVim |evim-keys| 11 3. Running eVim |evim-keys|
12 4. Initialization |initialization| 12 4. Initialization |initialization|
13 5. $VIM and $VIMRUNTIME |$VIM| 13 5. $VIM and $VIMRUNTIME |$VIM|
14 6. Suspending |suspend| 14 6. Suspending |suspend|
15 7. Saving settings |save-settings| 15 7. Exiting |exiting|
16 8. Views and Sessions |views-sessions| 16 8. Saving settings |save-settings|
17 9. The viminfo file |viminfo-file| 17 9. Views and Sessions |views-sessions|
18 10. The viminfo file |viminfo-file|
18 19
19 ============================================================================== 20 ==============================================================================
20 1. Vim arguments *vim-arguments* 21 1. Vim arguments *vim-arguments*
21 22
22 Most often, Vim is started to edit a single file with the command 23 Most often, Vim is started to edit a single file with the command
1131 In X-windows the selection is disowned when Vim suspends. this means you 1132 In X-windows the selection is disowned when Vim suspends. this means you
1132 can't paste it in another application (since Vim is going to sleep an attempt 1133 can't paste it in another application (since Vim is going to sleep an attempt
1133 to get the selection would make the program hang). 1134 to get the selection would make the program hang).
1134 1135
1135 ============================================================================== 1136 ==============================================================================
1136 7. Saving settings *save-settings* 1137 7. Exiting *exiting*
1138
1139 There are several ways to exit Vim:
1140 - Close the last window with `:quit`. Only when there are no changes.
1141 - Close the last window with `:quit!`. Also when there are changes.
1142 - Close all windows with `:qall`. Only when there are no changes.
1143 - Close all windows with `:qall!`. Also when there are changes.
1144 - Use `:cquit`. Also when there are changes.
1145
1146 When using `:cquit` or when there was an error message Vim exits with exit
1147 code 1. Errors can be avoide by using `:silent!`.
1148
1149 ==============================================================================
1150 8. Saving settings *save-settings*
1137 1151
1138 Mostly you will edit your vimrc files manually. This gives you the greatest 1152 Mostly you will edit your vimrc files manually. This gives you the greatest
1139 flexibility. There are a few commands to generate a vimrc file automatically. 1153 flexibility. There are a few commands to generate a vimrc file automatically.
1140 You can use these files as they are, or copy/paste lines to include in another 1154 You can use these files as they are, or copy/paste lines to include in another
1141 vimrc file. 1155 vimrc file.
1193 option, which has several side effects. See |'compatible'|. 1207 option, which has several side effects. See |'compatible'|.
1194 ":mkvimrc", ":mkexrc" and ":mksession" write the command to set or reset the 1208 ":mkvimrc", ":mkexrc" and ":mksession" write the command to set or reset the
1195 'compatible' option to the output file first, because of these side effects. 1209 'compatible' option to the output file first, because of these side effects.
1196 1210
1197 ============================================================================== 1211 ==============================================================================
1198 8. Views and Sessions *views-sessions* 1212 9. Views and Sessions *views-sessions*
1199 1213
1200 This is introduced in sections |21.4| and |21.5| of the user manual. 1214 This is introduced in sections |21.4| and |21.5| of the user manual.
1201 1215
1202 *View* *view-file* 1216 *View* *view-file*
1203 A View is a collection of settings that apply to one window. You can save a 1217 A View is a collection of settings that apply to one window. You can save a
1340 To automatically save and restore views for *.c files: > 1354 To automatically save and restore views for *.c files: >
1341 au BufWinLeave *.c mkview 1355 au BufWinLeave *.c mkview
1342 au BufWinEnter *.c silent loadview 1356 au BufWinEnter *.c silent loadview
1343 1357
1344 ============================================================================== 1358 ==============================================================================
1345 9. The viminfo file *viminfo* *viminfo-file* *E136* 1359 10. The viminfo file *viminfo* *viminfo-file* *E136*
1346 *E575* *E576* *E577* 1360 *E575* *E576* *E577*
1347 If you exit Vim and later start it again, you would normally lose a lot of 1361 If you exit Vim and later start it again, you would normally lose a lot of
1348 information. The viminfo file can be used to remember that information, which 1362 information. The viminfo file can be used to remember that information, which
1349 enables you to continue where you left off. 1363 enables you to continue where you left off.
1350 1364