Created
January 30, 2014 23:00
-
-
Save felixSchl/8721943 to your computer and use it in GitHub Desktop.
Working directory per tab
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" There is no way to set the cwd per tab by default. | |
" :cd changes the cwd for all of vim | |
" :lcd changes the cwd for the active window | |
" These two lines remedy this: | |
au TabEnter * if exists("t:wd") | exe "cd" . '"' t:wd . '"' | endif | |
au TabLeave * let t:wd=getcwd() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment