From 0266419cb8b7e256a4b06fca58198ee8a8b85016 Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Tue, 20 Nov 2012 15:55:14 -0500 Subject: [PATCH] open ctrl.p files in same buffer --- .vimrc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.vimrc b/.vimrc index 19f84f7..c1d3669 100644 --- a/.vimrc +++ b/.vimrc @@ -19,10 +19,10 @@ map fh :CtrlP app/helpers map fl :CtrlP lib map fp :CtrlP public map fs :CtrlP app/stylesheets -let g:ctrlp_prompt_mappings = { - \ 'AcceptSelection("e")': [''], - \ 'AcceptSelection("t")': ['', '<2-LeftMouse>'], - \ } +"let g:ctrlp_prompt_mappings = { +" \ 'AcceptSelection("e")': [''], +" \ 'AcceptSelection("t")': ['', '<2-LeftMouse>'], +" \ } """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " BASIC EDITING CONFIGURATION """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -320,7 +320,7 @@ endfunction " From http://vim.wikia.com/wiki/Move_current_window_between_tabs " Moves a window from one tab to another. -function MoveToPrevTab() +function! MoveToPrevTab() "there is only one window if tabpagenr('$') == 1 && winnr('$') == 1 return @@ -340,9 +340,9 @@ function MoveToPrevTab() endif "opening current buffer in new window exe "b".l:cur_buf -endfunc +endfunction -function MoveToNextTab() +function! MoveToNextTab() "there is only one window if tabpagenr('$') == 1 && winnr('$') == 1 return @@ -362,7 +362,7 @@ function MoveToNextTab() endif "opening current buffer in new window exe "b".l:cur_buf -endfunc +endfunction map :call MoveToNextTab()H map :call MoveToPrevTab()H