From 34f2273c94fc9a390800c9774c5fa1a76e700fc1 Mon Sep 17 00:00:00 2001 From: Eric Langlois Date: Fri, 3 Nov 2023 17:04:11 -0700 Subject: [PATCH] vim: vimdiff \[123] mappings for choice --- src/config/vim/plugin/mappings.vim | 29 ++++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/src/config/vim/plugin/mappings.vim b/src/config/vim/plugin/mappings.vim index c15ed56..f5fc2f5 100644 --- a/src/config/vim/plugin/mappings.vim +++ b/src/config/vim/plugin/mappings.vim @@ -87,17 +87,24 @@ onoremap al{ :normal! F}va} " Enable buffer display on airline let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#buffer_idx_mode = 1 -nmap 1 AirlineSelectTab1 -nmap 2 AirlineSelectTab2 -nmap 3 AirlineSelectTab3 -nmap 4 AirlineSelectTab4 -nmap 5 AirlineSelectTab5 -nmap 6 AirlineSelectTab6 -nmap 7 AirlineSelectTab7 -nmap 8 AirlineSelectTab8 -nmap 9 AirlineSelectTab9 -nmap - AirlineSelectPrevTab -nmap + AirlineSelectNextTab +nnoremap 1 AirlineSelectTab1 +nnoremap 2 AirlineSelectTab2 +nnoremap 3 AirlineSelectTab3 +nnoremap 4 AirlineSelectTab4 +nnoremap 5 AirlineSelectTab5 +nnoremap 6 AirlineSelectTab6 +nnoremap 7 AirlineSelectTab7 +nnoremap 8 AirlineSelectTab8 +nnoremap 9 AirlineSelectTab9 +nnoremap - AirlineSelectPrevTab +nnoremap + AirlineSelectNextTab + +" Vimdiff +if &diff + nnoremap 1 :diffget LOCAL + nnoremap 2 :diffget BASE + nnoremap 3 :diffget REMOTE +endif " Sort vnoremap s :sort i