Hi,

On Mon, Apr 8, 2019 at 2:03 PM chdiza <[email protected]> wrote:
>
> as you could use Vimscript to do :tabdo windo lcd every time you want to do 
> :cd, but that’s annoying to keep track of.
>
> It wouldn't be annoying to keep track of, if you wrapped it in a custom 
> command called ":Cd"!
>
> For the life of me, I don't see why something like that can't be done instead
> of :tcd. Just define a function in Vimscript and call it from a command
> called ":Tcd". That's what Vimscript is for. Make it one of the standard
> plugins that's shipped if need be.
>

You also need to provide new getcwd() and haslocaldir() functions that return
the proper win-local or tab-local directories. For example, you can directly
query the tab-local working directory independent of a window in the tab page
using a win-local directory.

The Vim plugin has to implement all of these functionality. I think it is better
to provide a native implementation as changing working directories is part
of the core Vim functionality.

- Yegappan

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui