Vim CtrlP behaviour with Unite
When I first found out about the popular CtrlP plug-in, I found myself using it constantly. Being able to switch between the document I had in my head was increasingly faster than traditional methods I was used to, and CtrlP soon became my most used plug-in.
I am constantly trying to “streamline” my vimrc, adding new tricks and removing unused shortcuts. I had heard about the Unite plug-in by Shugo and thought it could help me consolidate my file/buffer/mru search setup.
With help with various articles I setup Unite to handle content searching, yank history and file/buffer searching but I still wasn’t satisfied with the behaviour, I was still more comfortable with Ctrlp. After half an hour of tweaking I managed to replicate most of CtrlP’s behaviour with Unite.
Replicated Behaviour
<C-x> <C-v>
open file in horizontal and vertical split<C-t>
open file in new tab<esc>
exit unite window<C-j> <C-k>
Navigation, keep hands on home row- Appearance changes.
Below is a portion of my vim unite config that has Unite acting similar to CtrlP. You can view my full unite configuration on github.