kien/ctrlp.vim — Issue #34: File is created in wrong directory when g:ctrlp_working_path_mode = 1
Author: graudeejs
Created: 2011-11-14 13:28:56+00:00
State: open

I have g:ctrlp_working_path_mode = 1 since implementation of #30

I open vim in project directory

Now if have some file opened and open ctrlp, type some file name, and press it will be created in project directory, instead of current buffer directory. (note, I haven't switched to project directory with '/' yet)

In case when g:ctrlp_working_path_mode = 1 and current buffer is not in project root, ctrlp should create files relative current buffer directory, unless user switched to project root dir (with /).