Skip to content
Sync your shell's working directory with Vim
Vim script Shell
Branch: master
Clone or download
Latest commit 91371c0 Aug 5, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc fix doc: :tcd exists in recent vim Aug 3, 2019
macros initial commit Aug 3, 2019
plugin Revert "add :SyncTermCwdTablcd" Aug 3, 2019 Update Aug 5, 2019


Sync your shell's working directory with Vim. When you run cd command in the shell in Vim's :terminal, this plugin automatically sets the current working directory in Vim too.


Add below to your .bashrc / .zshrc.

source (this repository)/macros/

Change tabpage's current working directory

Add below to your .vimrc if you want to set current working directory of current tabpage.

let g:synctermcwd_cd_command = 'tcd'
You can’t perform that action at this time.