Friday, April 5, 2019

Re: How to execute autocmd command after "cd " event?

Hi,

On Fri, Apr 5, 2019 at 5:56 AM Igor Forca <igor2x@gmail.com> wrote:
>
> Hi,
> I have written some vim commands that I would like to execute every time after
> :cd <some path>
> command is executed.
>
> I searched the help:
> :help autocmd-events
> but can't find "change directory" event.
>

You can use the DirChanged autocmd event.

- Yegappan

> Any idea how to trigger vim script after "cd <path>" command?
>
> Regards
>
> I am using gVim latest nightly currently 8.1.1119 on Windows 7.
>

--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: