mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2025-01-08 11:07:34 +00:00
Fixing Some Leader Commands
This commit is contained in:
parent
16560b2df8
commit
4a26fbf8bd
@ -116,6 +116,8 @@ nnoremap <silent> <F3> :TMToggle<CR>
|
|||||||
"LustyJugler settings
|
"LustyJugler settings
|
||||||
let g:LustyJugglerShowKeys=1 "Show numbers for Lusty Buffers
|
let g:LustyJugglerShowKeys=1 "Show numbers for Lusty Buffers
|
||||||
let g:LustyJugglerSuppressRubyWarning=1
|
let g:LustyJugglerSuppressRubyWarning=1
|
||||||
|
nnoremap <silent> <C-L><C-J> :LustyJuggler<CR>
|
||||||
|
nnoremap <leader>. :LustyJugglePrevious<CR>
|
||||||
|
|
||||||
"NERDTree
|
"NERDTree
|
||||||
nnoremap <silent> <F4> :NERDTreeToggle<CR>
|
nnoremap <silent> <F4> :NERDTreeToggle<CR>
|
||||||
@ -148,7 +150,8 @@ cmap Q<CR> q<CR>
|
|||||||
"Enable search highlighting
|
"Enable search highlighting
|
||||||
set hls
|
set hls
|
||||||
"clearing highlighted search
|
"clearing highlighted search
|
||||||
nmap <silent> <leader>/ :nohlsearch<CR>
|
nmap <silent> <leader>/ :set hlsearch! hlsearch?<CR>
|
||||||
|
noremap <C-h><C-s> :set hlsearch! hlsearch?<CR>
|
||||||
|
|
||||||
" Change Working Directory to that of the current file
|
" Change Working Directory to that of the current file
|
||||||
cmap cwd lcd %:p:h
|
cmap cwd lcd %:p:h
|
||||||
@ -184,6 +187,7 @@ if has('ruby')
|
|||||||
|
|
||||||
" Leader Commands
|
" Leader Commands
|
||||||
nnoremap <leader>t :CommandT<CR>
|
nnoremap <leader>t :CommandT<CR>
|
||||||
|
nnoremap <leader>b :CommandTBuffer<CR>
|
||||||
else
|
else
|
||||||
" --------
|
" --------
|
||||||
" Use ctrlp.vim since we don't have Ruby
|
" Use ctrlp.vim since we don't have Ruby
|
||||||
@ -201,14 +205,7 @@ else
|
|||||||
nnoremap <leader>b :CtrlPBuffer<CR>
|
nnoremap <leader>b :CtrlPBuffer<CR>
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Always use CtrlP for most recently used files and relative dierctory.
|
|
||||||
"if has('unix')
|
|
||||||
" nnoremap <silent><C-u> :CtrlPCurFile<CR>
|
|
||||||
"else
|
|
||||||
" nnoremap <silent><M-u> :CtrlPCurFile<CR>
|
|
||||||
"endif
|
|
||||||
|
|
||||||
" Also map leader commands
|
" Also map leader commands
|
||||||
nnoremap <leader>u :CtrlPCurFile<CR>
|
nnoremap <leader>u :CtrlPCurFile<CR>
|
||||||
nnoremap <leader>m :CtrlPMRUFiles<CR>
|
nnoremap <leader>m :CtrlPMRUFiles<CR>
|
||||||
nnoremap <leader>b :CtrlPBuffer<CR>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user