From 4a26fbf8bddfc609998c8c567901970ee9b4aa48 Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Wed, 17 Oct 2012 16:26:42 -0400 Subject: [PATCH] Fixing Some Leader Commands --- vim/dot_vimrc | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/vim/dot_vimrc b/vim/dot_vimrc index 1276406..4335e2e 100644 --- a/vim/dot_vimrc +++ b/vim/dot_vimrc @@ -116,6 +116,8 @@ nnoremap :TMToggle "LustyJugler settings let g:LustyJugglerShowKeys=1 "Show numbers for Lusty Buffers let g:LustyJugglerSuppressRubyWarning=1 +nnoremap :LustyJuggler +nnoremap . :LustyJugglePrevious "NERDTree nnoremap :NERDTreeToggle @@ -148,7 +150,8 @@ cmap Q q "Enable search highlighting set hls "clearing highlighted search -nmap / :nohlsearch +nmap / :set hlsearch! hlsearch? +noremap :set hlsearch! hlsearch? " Change Working Directory to that of the current file cmap cwd lcd %:p:h @@ -184,6 +187,7 @@ if has('ruby') " Leader Commands nnoremap t :CommandT + nnoremap b :CommandTBuffer else " -------- " Use ctrlp.vim since we don't have Ruby @@ -201,14 +205,7 @@ else nnoremap b :CtrlPBuffer endif -" Always use CtrlP for most recently used files and relative dierctory. -"if has('unix') -" nnoremap :CtrlPCurFile -"else -" nnoremap :CtrlPCurFile -"endif - " Also map leader commands nnoremap u :CtrlPCurFile nnoremap m :CtrlPMRUFiles -nnoremap b :CtrlPBuffer +