Mercurial > vim
comparison runtime/doc/usr_07.txt @ 12499:d91cf2e26ef0
Update runtime files.
commit https://github.com/vim/vim/commit/37c64c78fd87e086b5a945ad7032787c274e2dcb
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Sep 19 22:06:03 2017 +0200
Update runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 19 Sep 2017 22:15:06 +0200 |
parents | 444ad56c0cac |
children | 1174611ad715 |
comparison
equal
deleted
inserted
replaced
12498:bf98d339b568 | 12499:d91cf2e26ef0 |
---|---|
1 *usr_07.txt* For Vim version 8.0. Last change: 2017 Aug 11 | 1 *usr_07.txt* For Vim version 8.0. Last change: 2017 Sep 18 |
2 | 2 |
3 VIM USER MANUAL - by Bram Moolenaar | 3 VIM USER MANUAL - by Bram Moolenaar |
4 | 4 |
5 Editing more than one file | 5 Editing more than one file |
6 | 6 |
213 Another mark that is remembered is the position where you made the last | 213 Another mark that is remembered is the position where you made the last |
214 change: > | 214 change: > |
215 | 215 |
216 `. | 216 `. |
217 | 217 |
218 Suppose you are editing the file "one.txt". Somewhere halfway the file you | 218 Suppose you are editing the file "one.txt". Somewhere halfway through the |
219 use "x" to delete a character. Then you go to the last line with "G" and | 219 file you use "x" to delete a character. Then you go to the last line with "G" |
220 write the file with ":w". You edit several other files, and then use ":edit | 220 and write the file with ":w". You edit several other files, and then use |
221 one.txt" to come back to "one.txt". If you now use `" Vim jumps to the last | 221 ":edit one.txt" to come back to "one.txt". If you now use `" Vim jumps to the |
222 line of the file. Using `. takes you to the position where you deleted the | 222 last line of the file. Using `. takes you to the position where you deleted |
223 character. Even when you move around in the file `" and `. will take you to | 223 the character. Even when you move around in the file `" and `. will take you |
224 the remembered position. At least until you make another change or leave the | 224 to the remembered position. At least until you make another change or leave |
225 file. | 225 the file. |
226 | 226 |
227 | 227 |
228 FILE MARKS | 228 FILE MARKS |
229 | 229 |
230 In chapter 4 was explained how you can place a mark in a file with "mx" and | 230 In chapter 4 was explained how you can place a mark in a file with "mx" and |
231 jump to that position with "`x". That works within one file. If you edit | 231 jump to that position with "`x". That works within one file. If you edit |
232 another file and place marks there, these are specific for that file. Thus | 232 another file and place marks there, these are specific for that file. Thus |
233 each file has its own set of marks, they are local to the file. | 233 each file has its own set of marks, they are local to the file. |
234 So far we were using marks with a lowercase letter. There are also marks | 234 So far we were using marks with a lowercase letter. There are also marks |
235 with an uppercase letter. These are global, they can be used from any file. | 235 with an uppercase letter. These are global, they can be used from any file. |
236 For example suppose that we are editing the file "foo.txt". Go to halfway the | 236 For example suppose that we are editing the file "foo.txt". Go to halfway |
237 file ("50%") and place the F mark there (F for foo): > | 237 down the file ("50%") and place the F mark there (F for foo): > |
238 | 238 |
239 50%mF | 239 50%mF |
240 | 240 |
241 Now edit the file "bar.txt" and place the B mark (B for bar) at its last line: | 241 Now edit the file "bar.txt" and place the B mark (B for bar) at its last line: |
242 > | 242 > |