diff --git a/.vimrc b/.vimrc index 5eb69f1..830aa71 100755 --- a/.vimrc +++ b/.vimrc @@ -121,6 +121,25 @@ command! Csc cscope find c " Key binds " +" Simulate maximize/minimize window +nnoremap m :call ToggleMiniMaxiWin() +nnoremap wm :call ToggleMiniMaxiWin() +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 * :%s/\<\>//g + nmap :NERDTreeToggle nmap :NERDTreeFind map :call CurtineIncSw()