diff options
author | Max Christian Pohle | 2018-01-06 12:44:33 +0100 |
---|---|---|
committer | Max Christian Pohle | 2018-01-06 12:44:33 +0100 |
commit | 61196ac4c36fe524d4cba8b7bbba78d379b29163 (patch) | |
tree | dd65c00598d453e78a4dddea83f218d13c81ff45 | |
parent | d6ad46d52ebf15fcc743e19acd3ace73fbbed98f (diff) | |
download | vim-61196ac4c36fe524d4cba8b7bbba78d379b29163.tar.bz2 vim-61196ac4c36fe524d4cba8b7bbba78d379b29163.zip |
Removed TAB for buffer switching, remapped F-keys instead
Because Tab collides with <C-I>, which can otherwise not be used easily
-rw-r--r-- | vimrc-full | 26 |
1 files changed, 15 insertions, 11 deletions
@@ -421,8 +421,8 @@ if has("autocmd") | |||
421 | endif | 421 | endif |
422 | endfunction | 422 | endfunction |
423 | 423 | ||
424 | nmap <script> <silent> <F2> :call QFixToggle(0)<CR> | 424 | nmap <script> <silent> <F7> :call QFixToggle(0)<CR> |
425 | nmap <script> <silent> <F3> :call ToggleQuickFix()<CR> | 425 | nmap <script> <silent> <F8> :call ToggleQuickFix()<CR> |
426 | augroup END | 426 | augroup END |
427 | 427 | ||
428 | augroup CurrentFileName | 428 | augroup CurrentFileName |
@@ -450,13 +450,13 @@ if has("autocmd") | |||
450 | 01menu &Functions.help | 450 | 01menu &Functions.help |
451 | \<Tab><F1> | 451 | \<Tab><F1> |
452 | \ <F1> | 452 | \ <F1> |
453 | 01menu &Functions.copen\:\ show\ quickfix\ list | 453 | 01menu &Functions.bp:\ previous\ buffer |
454 | \<Tab><F2> | 454 | \<Tab><F2> |
455 | \ <F2> | 455 | \ <F2> |
456 | 01menu &Functions.lopen\:\ show\ location\ list | 456 | 01menu &Functions.bn:\ next\ buffer |
457 | \<Tab><F3> | 457 | \<Tab><F3> |
458 | \ <F3> | 458 | \ <F3> |
459 | 01menu &Functions.unef4 | 459 | 01menu &Functions.^wc\:\ close\ window |
460 | \<Tab><F4> | 460 | \<Tab><F4> |
461 | \ <F4> | 461 | \ <F4> |
462 | 01menu &Functions.-Sep1- : | 462 | 01menu &Functions.-Sep1- : |
@@ -467,10 +467,10 @@ if has("autocmd") | |||
467 | 01menu &Functions.clear\ matches,\ update\ viewport | 467 | 01menu &Functions.clear\ matches,\ update\ viewport |
468 | \<Tab><F6> | 468 | \<Tab><F6> |
469 | \ <F6> | 469 | \ <F6> |
470 | 01menu &Functions.undef7 | 470 | 01menu &Functions.copen\:\ show\ quickfix\ list |
471 | \<Tab><F7> | 471 | \<Tab><F7> |
472 | \ <F7> | 472 | \ <F7> |
473 | 01menu &Functions.undef8 | 473 | 01menu &Functions.lopen\:\ show\ location\ list |
474 | \<Tab><F8> | 474 | \<Tab><F8> |
475 | \ <F8> | 475 | \ <F8> |
476 | 01menu &Functions.-Sep2- : | 476 | 01menu &Functions.-Sep2- : |
@@ -709,11 +709,15 @@ nnoremap <expr> | |||
709 | \ <leader><leader> | 709 | \ <leader><leader> |
710 | \ bufwinnr("%")==g:NERDTree.GetWinNum() ? ':NERDTreeClose<CR>' : ':NERDTreeFind<CR>' | 710 | \ bufwinnr("%")==g:NERDTree.GetWinNum() ? ':NERDTreeClose<CR>' : ':NERDTreeFind<CR>' |
711 | nnoremap <expr> | 711 | nnoremap <expr> |
712 | \ <Tab> | 712 | \ <F2> |
713 | \ bufwinnr("%")==g:NERDTree.GetWinNum() ? '<C-W><C-W>' : ':bn<CR>' | 713 | \ bufwinnr("%")==g:NERDTree.GetWinNum() ? '<C-W><C-W>' : ':N<CR>' |
714 | |||
714 | nnoremap <expr> | 715 | nnoremap <expr> |
715 | \ <S-Tab> | 716 | \ <F3> |
716 | \ bufwinnr("%")==g:NERDTree.GetWinNum() ? '<C-W><C-W>' : ':bp<CR>' | 717 | \ bufwinnr("%")==g:NERDTree.GetWinNum() ? '<C-W><C-W>' : ':n<CR>' |
718 | |||
719 | nnoremap <F4> | ||
720 | \ :wincmd c<CR> | ||
717 | " close NERDTree if it is the last remaining window (taken from the official documentation) | 721 | " close NERDTree if it is the last remaining window (taken from the official documentation) |
718 | " autocmd bufenter * | 722 | " autocmd bufenter * |
719 | " \ if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | 723 | " \ if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif |