ervandew / screen

Simulate a split shell in vim using gnu screen or tmux
203 stars 31 forks source link

[FEATURE] Change working directory of ScreenShell to match caller's on initialization #2

Closed guns closed 14 years ago

guns commented 14 years ago

Oftentimes, a program that you are working on contains relative references to files, and will not work unless the ScreenShell program is launched in the same working directory as the script.

If you launch :ScreenShell when you are not in a screen session, the bootstrapped screen session's CWD is the same as that of vim's, happily coinciding.

If you are in a screen session, the new ScreenShell's CWD is that of the screen session, which is likely not the same as Vim's CWD. :(

Right now I have a mapping that clumsily sends ScreenShellSend('cd '.getcwd()), but it would be nice if Screen.vim could do this (better) on init.

ervandew commented 14 years ago

in an existing screen session, force new region to have same cwd as vim

closed by d61963ea9c3b6483f9abb25a9fbcaf4df2f409d3

guns commented 14 years ago

Thank you! Still loving screen.vim!