From 0fc83ead3bc4caaea764f4fe90d9e1045e099c1a Mon Sep 17 00:00:00 2001 From: Yan Pritzker Date: Tue, 17 Dec 2013 19:46:42 -0600 Subject: [PATCH] CtrlP no longer jumps you to the file if it's already open. This makes it easier to maintain multiple Tab workspaces involving the same files. For example, in one workspace you want a class and its spec, and in another tab you want to see that class in context with another collaborator. This allows you to open the window multiple times. --- vim/settings/ctrlp.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vim/settings/ctrlp.vim b/vim/settings/ctrlp.vim index 391cab6..deaa46b 100644 --- a/vim/settings/ctrlp.vim +++ b/vim/settings/ctrlp.vim @@ -14,6 +14,10 @@ endif " controller let g:ctrlp_by_filename = 1 +" Don't jump to already open window. This is annoying if you are maintaining +" several Tab workspaces and want to open two windows into the same file. +let g:ctrlp_switch_buffer = 0 + " We don't want to use Ctrl-p as the mapping because " it interferes with YankRing (paste, then hit ctrl-p) let g:ctrlp_map = ',t'