From 211f11b6631096453458bd3c68d6fa5d6f83ba0d Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Thu, 19 Sep 2019 15:25:24 -0600 Subject: Update gstatus, add tab duplicate --- plugin/vim-options.vim | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'plugin/vim-options.vim') diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim index 2c4eef8..19cc08b 100644 --- a/plugin/vim-options.vim +++ b/plugin/vim-options.vim @@ -113,6 +113,8 @@ noremap ] vL noremap vT "Create New tab nnoremap t :tabnew +"Duplicate current buffer into another tab +nnoremap vT " Run isort on file noremap ei :!isort % " Run black on file @@ -124,11 +126,7 @@ function! SaveSession() endfunction nnoremap ess :call SaveSession() nnoremap esr :source $SessionDir/session.vim -" Jump to first/last line in a paragraph -nnoremap k{w -nnoremap j}k^ -vnoremap k{w -vnoremap j}k^ +" Paste nnoremap y :call system('nc -w 1 172.17.0.1 41401', @0) " Delete current file and purge buffer function! Rm() @@ -181,7 +179,8 @@ if !empty(glob($EditorDir.'plugged/vim-fugitive/plugin/fugitive.vim')) if buflisted(bufname('.git/index')) bd .git/index else - Gstatus + G + res 15 endif endfunction command ToggleGStatus :call ToggleGStatus() -- cgit v1.2.3