|
1 |
| -*editing.txt* For Vim version 8.0. Last change: 2016 Nov 24 |
| 1 | +*editing.txt* For Vim version 8.0. Last change: 2017 Aug 21 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -617,16 +617,16 @@ list of the current window.
|
617 | 617 | Also see |++opt| and |+cmd|.
|
618 | 618 | {Vi: no ++opt}
|
619 | 619 |
|
620 |
| -:[count]arge[dit][!] [++opt] [+cmd] {name} *:arge* *:argedit* |
621 |
| - Add {name} to the argument list and edit it. |
| 620 | +:[count]arge[dit][!] [++opt] [+cmd] {name} .. *:arge* *:argedit* |
| 621 | + Add {name}s to the argument list and edit it. |
622 | 622 | When {name} already exists in the argument list, this
|
623 | 623 | entry is edited.
|
624 | 624 | This is like using |:argadd| and then |:edit|.
|
625 |
| - Note that only one file name is allowed, and spaces |
626 |
| - inside the file name are allowed, like with |:edit|. |
| 625 | + Spaces in filenames have to be escaped with "\". |
627 | 626 | [count] is used like with |:argadd|.
|
628 |
| - [!] is required if the current file cannot be |
629 |
| - |abandon|ed. |
| 627 | + If the current file cannot be |abandon|ed {name}s will |
| 628 | + still be added to the argument list, but won't be |
| 629 | + edited. No check for duplicates is done. |
630 | 630 | Also see |++opt| and |+cmd|.
|
631 | 631 | {not in Vi}
|
632 | 632 |
|
@@ -1109,6 +1109,7 @@ The names can be in upper- or lowercase.
|
1109 | 1109 | window in the current tab page the current tab page is
|
1110 | 1110 | closed |tab-page|.
|
1111 | 1111 | Triggers the |QuitPre| autocommand event.
|
| 1112 | + See |CTRL-W_q| for quitting another window. |
1112 | 1113 |
|
1113 | 1114 | :conf[irm] q[uit] Quit, but give prompt when changes have been made, or
|
1114 | 1115 | the last file in the argument list has not been
|
@@ -1328,9 +1329,11 @@ present in 'cpoptions' and "!" is not used in the command.
|
1328 | 1329 | :chd[ir][!] [path] Same as |:cd|.
|
1329 | 1330 |
|
1330 | 1331 | *:lc* *:lcd*
|
1331 |
| -:lc[d][!] {path} Like |:cd|, but only set the current directory for the |
1332 |
| - current window. The current directory for other |
1333 |
| - windows is not changed. {not in Vi} |
| 1332 | +:lc[d][!] {path} Like |:cd|, but only set the current directory when |
| 1333 | + the cursor is in the current window. The current |
| 1334 | + directory for other windows is not changed, switching |
| 1335 | + to another window will stop using {path}. |
| 1336 | + {not in Vi} |
1334 | 1337 |
|
1335 | 1338 | *:lch* *:lchdir*
|
1336 | 1339 | :lch[dir][!] Same as |:lcd|. {not in Vi}
|
@@ -1558,6 +1561,13 @@ If you want to automatically reload a file when it has been changed outside of
|
1558 | 1561 | Vim, set the 'autoread' option. This doesn't work at the moment you write the
|
1559 | 1562 | file though, only when the file wasn't changed inside of Vim.
|
1560 | 1563 |
|
| 1564 | +If you do not want to be asked or automatically reload the file, you can use |
| 1565 | +this: > |
| 1566 | + set buftype=nofile |
| 1567 | +
|
| 1568 | +Or, when starting gvim from a shell: > |
| 1569 | + gvim file.log -c "set buftype=nofile" |
| 1570 | +
|
1561 | 1571 | Note that if a FileChangedShell autocommand is defined you will not get a
|
1562 | 1572 | warning message or prompt. The autocommand is expected to handle this.
|
1563 | 1573 |
|
@@ -1728,7 +1738,7 @@ There are three different types of searching:
|
1728 | 1738 | This searches the same directories, but in a different order.
|
1729 | 1739 |
|
1730 | 1740 | Note that completion for ":find", ":sfind", and ":tabfind" commands do not
|
1731 |
| - currently work with 'path' items that contain a url or use the double star |
| 1741 | + currently work with 'path' items that contain a URL or use the double star |
1732 | 1742 | with depth limiter (/usr/**2) or upward search (;) notations.
|
1733 | 1743 |
|
1734 | 1744 | vim:tw=78:ts=8:ft=help:norl:
|
0 commit comments