diff options
author | j-james | 2022-01-18 08:53:21 +0000 |
---|---|---|
committer | j-james | 2022-01-18 09:02:04 +0000 |
commit | 0768d8cf9bf589be46d7a5162cb131229d3784bf (patch) | |
tree | f11280ca12f6567975dde50cf473a3e199c7b0a6 /autoload/novim_mode.vim | |
parent | 498a7e77539e44d7bee60c5e5379dafbd98a19e8 (diff) |
Add tab navigation functionalitytabs
Diffstat (limited to 'autoload/novim_mode.vim')
-rw-r--r-- | autoload/novim_mode.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/autoload/novim_mode.vim b/autoload/novim_mode.vim index 3e003d2..28e3305 100644 --- a/autoload/novim_mode.vim +++ b/autoload/novim_mode.vim @@ -118,6 +118,19 @@ function! g:SetNoVimModeShortcuts() inoremap <silent> <PageUp> <C-O>:call novim_mode#PageUp()<CR> endif + " Open and cycle between tabs + if g:novim_mode_use_tab_shortcuts == 1 + " Open a new tab + nnoremap <silent> <C-T> :tabnew<CR> + inoremap <silent> <C-T> <C-O>:tabnew<CR> + snoremap <silent> <C-T> <C-O>:tabnew<CR> + " Cycle through tabs + " I would prefer <C-Tab>, but can't use it due to technical limitations. + nnoremap <silent> <C-S-T> :tabnext<CR> + inoremap <silent> <C-S-T> <C-O>:tabnext<CR> + snoremap <silent> <C-S-T> <C-O>:tabnext<CR> + end + " Move between splits, panes, windows, etc and close them if g:novim_mode_use_pane_controls == 1 inoremap <silent> <M-Left> <C-O><C-W><Left> |