kien/ctrlp.vim — Issue #28: Open new window from netrw buffer
Author: fomichev
Created: 2011-11-09 09:21:21+00:00
State: open

Hi,

When I run vim via ```vim .``` to open it with the current directory listing and then ctrl-p to another file, the new split window is opened instead of using the current one.

I explicitly set the following options:

let g:ctrlp_split_window = 0
let g:ctrlp_open_new_file = 0

After some digging in the code I found that netrw sets ```noma```, ```nobl``` and ```bf=nofile```.
This "breaks" ```s:normcmd``` call in the ```ctrlp#acceptfile``` and executes ```bo vne ...``` instead of ```bo e ...```.

Maybe there is some work around for such an issue? Netrw lets me redefine its buffer settings via ```g:netrw_bufsettings``` but honestly I don't want to see its buffers in the 'ls' and make them modifiable.

I'd appreciate your help, thanks!