kien/ctrlp.vim — Issue #65: ctrlp_working_path_mode = 0 ignores Vim's cwd
Author: imiric
Created: 2012-01-05 02:28:43+00:00
State: open

When ctrlp_working_path_mode = 0 (don't manage working directory), and I use 'cd' to change directories in Vim, when opening files with CtrlP the path names shown in the buffer list and tab names is relative to the directory I originally started Vim in, not Vim's current working directory.

For example:
1. I start Vim from ~/.
2. I do :cd ~/test
3. I open several files using .
4. The path shown in the buffer list and tab names starts with ~/test/.

Note that if I remove ctrlp_working_path_mode from my vimrc, then the first files I open show the path correctly, but the last one shows this path relative to the directory I initially started Vim. To fix it, I can simply invoke CtrlP again, and the path will be fixed.