Mercurial > vim
comparison runtime/doc/editing.txt @ 20711:d91b8d1e5198 v8.2.0909
patch 8.2.0909: cannot go back to the previous local directory
Commit: https://github.com/vim/vim/commit/002bc79991286934a9593b80635c27d4238cdfc4
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jun 5 22:33:42 2020 +0200
patch 8.2.0909: cannot go back to the previous local directory
Problem: Cannot go back to the previous local directory.
Solution: Add "tcd -" and "lcd -". (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/4362)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 05 Jun 2020 22:45:04 +0200 |
parents | b60bb094af52 |
children | 661eb972cb22 |
comparison
equal
deleted
inserted
replaced
20710:24fa685e72e9 | 20711:d91b8d1e5198 |
---|---|
1324 have their own window-local directory. | 1324 have their own window-local directory. |
1325 | 1325 |
1326 *:tch* *:tchdir* | 1326 *:tch* *:tchdir* |
1327 :tch[dir][!] Same as |:tcd|. | 1327 :tch[dir][!] Same as |:tcd|. |
1328 | 1328 |
1329 *:tcd-* | |
1330 :tcd[!] - Change to the previous current directory, before the | |
1331 last ":tcd {path}" command. | |
1332 | |
1329 *:lc* *:lcd* | 1333 *:lc* *:lcd* |
1330 :lc[d][!] {path} Like |:cd|, but only set the current directory when | 1334 :lc[d][!] {path} Like |:cd|, but only set the current directory when |
1331 the cursor is in the current window. The current | 1335 the cursor is in the current window. The current |
1332 directory for other windows is not changed, switching | 1336 directory for other windows is not changed, switching |
1333 to another window will stop using {path}. | 1337 to another window will stop using {path}. |
1334 | 1338 |
1335 *:lch* *:lchdir* | 1339 *:lch* *:lchdir* |
1336 :lch[dir][!] Same as |:lcd|. | 1340 :lch[dir][!] Same as |:lcd|. |
1341 | |
1342 *:lcd-* | |
1343 :lcd[!] - Change to the previous current directory, before the | |
1344 last ":lcd {path}" command. | |
1337 | 1345 |
1338 *:pw* *:pwd* *E187* | 1346 *:pw* *:pwd* *E187* |
1339 :pw[d] Print the current directory name. | 1347 :pw[d] Print the current directory name. |
1340 Also see |getcwd()|. | 1348 Also see |getcwd()|. |
1341 *:pwd-verbose* | 1349 *:pwd-verbose* |