vimrc: Add Togglemaxmin and replace word under cursor
Change-Id: I87aa251dbbbe4f1f54674f0cc4fccd8fc4d54e09
This commit is contained in:
19
.vimrc
19
.vimrc
@@ -121,6 +121,25 @@ command! Csc cscope find c <cword>
|
||||
" Key binds
|
||||
"
|
||||
|
||||
" Simulate maximize/minimize window
|
||||
nnoremap <C-w>m :call ToggleMiniMaxiWin()<CR>
|
||||
nnoremap <leader>wm :call ToggleMiniMaxiWin()<CR>
|
||||
function! ToggleMiniMaxiWin()
|
||||
if tabpagewinnr(tabpagenr(), '$') > 1
|
||||
tab split
|
||||
elseif tabpagenr('$') > 1
|
||||
if tabpagenr() < tabpagenr('$')
|
||||
tabclose
|
||||
tabprevious
|
||||
else
|
||||
tabclose
|
||||
endif
|
||||
endif
|
||||
endfunction
|
||||
|
||||
" Replace the word under cursor
|
||||
nnoremap <leader>* :%s/\<<c-r><c-w>\>//g<left><left>
|
||||
|
||||
nmap <F2> :NERDTreeToggle<CR>
|
||||
nmap <F3> :NERDTreeFind<CR>
|
||||
map <F5> :call CurtineIncSw()<CR>
|
||||
|
||||
Reference in New Issue
Block a user