diff options
Diffstat (limited to 'vim/init/keymaps.vim')
| -rw-r--r-- | vim/init/keymaps.vim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vim/init/keymaps.vim b/vim/init/keymaps.vim index adbbffd..0e2adcf 100644 --- a/vim/init/keymaps.vim +++ b/vim/init/keymaps.vim | |||
| @@ -613,9 +613,6 @@ nnoremap <leader>tc :tabclose<CR> | |||
| 613 | nnoremap <leader>tm :tabmove<SPACE> | 613 | nnoremap <leader>tm :tabmove<SPACE> |
| 614 | nnoremap <leader>to :tabonly<CR> | 614 | nnoremap <leader>to :tabonly<CR> |
| 615 | 615 | ||
| 616 | nnoremap <silent><m-h> :call Tab_MoveLeft()<CR> | ||
| 617 | nnoremap <silent><m-l> :call Tab_MoveRight()<CR> | ||
| 618 | |||
| 619 | " Let <leader>tl toggle between this and the last accessed tab | 616 | " Let <leader>tl toggle between this and the last accessed tab |
| 620 | let g:lasttab = 1 | 617 | let g:lasttab = 1 |
| 621 | nnoremap <Leader>tl :exe "tabn ".g:lasttab<CR> | 618 | nnoremap <Leader>tl :exe "tabn ".g:lasttab<CR> |
| @@ -626,7 +623,7 @@ autocmd TabLeave * let g:lasttab = tabpagenr() | |||
| 626 | nnoremap <leader>te :tabedit <C-r>=expand("%:p:h")<CR> | 623 | nnoremap <leader>te :tabedit <C-r>=expand("%:p:h")<CR> |
| 627 | 624 | ||
| 628 | " Tab move functions | 625 | " Tab move functions |
| 629 | function! Tvab_MoveLeft() | 626 | function! Tab_MoveLeft() |
| 630 | let l:tabnr = tabpagenr() - 2 | 627 | let l:tabnr = tabpagenr() - 2 |
| 631 | if l:tabnr >= 0 | 628 | if l:tabnr >= 0 |
| 632 | exec 'tabmove '.l:tabnr | 629 | exec 'tabmove '.l:tabnr |
| @@ -638,6 +635,9 @@ function! Tab_MoveRight() | |||
| 638 | exec 'tabmove '.l:tabnr | 635 | exec 'tabmove '.l:tabnr |
| 639 | endif | 636 | endif |
| 640 | endfunc | 637 | endfunc |
| 638 | |||
| 639 | nnoremap <silent><m-h> :call Tab_MoveLeft()<CR> | ||
| 640 | nnoremap <silent><m-l> :call Tab_MoveRight()<CR> | ||
| 641 | " }}} | 641 | " }}} |
| 642 | " TERMINAL {{{ | 642 | " TERMINAL {{{ |
| 643 | 643 | ||