diff options
author | Cody Hiar <cody@hiar.ca> | 2019-09-19 15:25:24 -0600 |
---|---|---|
committer | Cody Hiar <cody@hiar.ca> | 2019-09-19 15:25:24 -0600 |
commit | 211f11b6631096453458bd3c68d6fa5d6f83ba0d (patch) | |
tree | 356455d0ec0c4fe670554008ad31c9b1dc64247e /plugin | |
parent | ec5d4c6fe30463ebb9a744a6e67e62b1854a805b (diff) |
Update gstatus, add tab duplicate
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/vim-options.vim | 11 |
1 files changed, 5 insertions, 6 deletions
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 <c-w>] <c-w>v<c-]><c-w>L noremap <c-w><c-]> <c-w>v<c-]><c-w>T "Create New tab nnoremap <C-w>t :tabnew<CR> +"Duplicate current buffer into another tab +nnoremap <C-w><C-t> <C-w>v<C-w>T " Run isort on file noremap <leader>ei :!isort %<CR> " Run black on file @@ -124,11 +126,7 @@ function! SaveSession() endfunction nnoremap <leader>ess :call SaveSession()<CR> nnoremap <leader>esr :source $SessionDir/session.vim<CR> -" Jump to first/last line in a paragraph -nnoremap <A-{> k{w -nnoremap <A-}> j}k^ -vnoremap <A-{> k{w -vnoremap <A-}> j}k^ +" Paste nnoremap <leader>y :call system('nc -w 1 172.17.0.1 41401', @0)<CR> " 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() |