ctrlp.vim
ctrlp.vim copied to clipboard
Mixed mode - put MRU first in initial sort
I frequently switch back and forth between the same two files, which MRU mode is great for. If MRU mode is set as my default, I can just hit ctrl-p + enter to switch back and forth. But when I actually need to search for another file I have to open ctrlp and switch modes which is a bit cumbersome. It would be awesome if mixed mode put the MRU files first for quick switching between recent files, but searched through everything once you start typing. I know not everyone has the same workflow as me, but it seems like this would generally be more useful than the current initial ordering which is a bit random. This is basically how the "Search Everything" feature works in Intellij, and it works really well.
here is an active fork of kien/ctrlp.vim,maybe you can get help from there. https://github.com/ctrlpvim/ctrlp.vim also if you need to switch back and forth between two files,i think Unite maybe is a good choise
Ah, it's been awhile since I updated my Vim config, didn't even notice this repo was inactive. Thanks for the tips!
i think this can be implemented by yourself maybe this is what you need https://github.com/h14i/vim-ctrlp-buftab/blob/master/README.md