Mercurial > vim
diff runtime/doc/editing.txt @ 167:c93c9cad9618
updated for version 7.0051
author | vimboss |
---|---|
date | Tue, 22 Feb 2005 08:39:57 +0000 |
parents | 6df0106fc595 |
children | 4707450c2b33 |
line wrap: on
line diff
--- a/runtime/doc/editing.txt +++ b/runtime/doc/editing.txt @@ -1,4 +1,4 @@ -*editing.txt* For Vim version 7.0aa. Last change: 2005 Feb 07 +*editing.txt* For Vim version 7.0aa. Last change: 2005 Feb 14 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1143,13 +1143,16 @@ You may use the |:cd| and |:lcd| command you will not have to type that directory name in front of the file names. It also makes a difference for executing external commands, e.g. ":!ls". +Changing directory fails when the current buffer is modified, the '.' flag is +present in 'cpoptions' and "!" is not used in the command. + *:cd* *E472* -:cd On non-Unix systems: Print the current directory +:cd[!] On non-Unix systems: Print the current directory name. On Unix systems: Change the current directory to the home directory. Use |:pwd| to print the current directory on all systems. -:cd {path} Change the current directory to {path}. +:cd[!] {path} Change the current directory to {path}. If {path} is relative, it is searched for in the directories listed in |'cdpath'|. Does not change the meaning of an already opened file, @@ -1160,19 +1163,19 @@ also makes a difference for executing ex :cd %:h < *:cd-* *E186* -:cd - Change to the previous current directory (before the +:cd[!] - Change to the previous current directory (before the previous ":cd {path}" command). {not in Vi} *:chd* *:chdir* -:chd[ir] [path] Same as |:cd|. +:chd[ir][!] [path] Same as |:cd|. *:lc* *:lcd* -:lc[d] {path} Like |:cd|, but only set the current directory for the +:lc[d][!] {path} Like |:cd|, but only set the current directory for the current window. The current directory for other windows is not changed. {not in Vi} *:lch* *:lchdir* -:lch[dir] Same as |:lcd|. {not in Vi} +:lch[dir][!] Same as |:lcd|. {not in Vi} *:pw* *:pwd* *E187* :pw[d] Print the current directory name. {Vi: no pwd}