diff options
author | Cody Hiar <cody@hiar.ca> | 2019-08-09 15:44:58 -0600 |
---|---|---|
committer | Cody Hiar <cody@hiar.ca> | 2019-08-09 15:44:58 -0600 |
commit | ec5d4c6fe30463ebb9a744a6e67e62b1854a805b (patch) | |
tree | a8ed27d7fc820266dc3719fce4104d92417d0762 /plugin | |
parent | f634bc64b8dbb73193d135c78aa979adc3fe0a22 (diff) |
Add some tab shortcuts
Diffstat (limited to 'plugin')
-rw-r--r-- | plugin/vim-options.vim | 8 |
1 files changed, 6 insertions, 2 deletions
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 <leader>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#")<CR> " Turn off syntax highlighting nnoremap <leader><leader> :noh<CR> -" New tab -nnoremap <C-w>t :tabnew<CR> " Visually select pasted text nnoremap gp `[v`] " Vimdiff commands @@ -107,8 +105,14 @@ nnoremap ]w :cnext<CR> noremap <leader>ep ofrom pudb import set_trace; set_trace()<ESC> " Vertical split instead of horiztonal noremap <c-w>f <c-w>f<c-w>L +" Follow file into new tab +noremap <c-w><c-f> <c-w>f<c-w>T " <c-w>] uses path not tags file? noremap <c-w>] <c-w>v<c-]><c-w>L +" <c-w>] to new tab +noremap <c-w><c-]> <c-w>v<c-]><c-w>T +"Create New tab +nnoremap <C-w>t :tabnew<CR> " Run isort on file noremap <leader>ei :!isort %<CR> " Run black on file |