From ec5d4c6fe30463ebb9a744a6e67e62b1854a805b Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Fri, 9 Aug 2019 15:44:58 -0600 Subject: Add some tab shortcuts --- plugin/vim-options.vim | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'plugin') diff --git a/plugin/vim-options.vim b/plugin/vim-options.vim index 68bd166..2c4eef8 100644 --- a/plugin/vim-options.vim +++ b/plugin/vim-options.vim @@ -73,8 +73,6 @@ command! MakeTagsPython !ctags --languages=python --python-kinds=-i -R . map hi :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">" . " FG:" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"fg#") " Turn off syntax highlighting nnoremap :noh -" New tab -nnoremap t :tabnew " Visually select pasted text nnoremap gp `[v`] " Vimdiff commands @@ -107,8 +105,14 @@ nnoremap ]w :cnext noremap ep ofrom pudb import set_trace; set_trace() " Vertical split instead of horiztonal noremap f fL +" Follow file into new tab +noremap fT " ] uses path not tags file? noremap ] vL +" ] to new tab +noremap vT +"Create New tab +nnoremap t :tabnew " Run isort on file noremap ei :!isort % " Run black on file -- cgit v1.2.3