vim:keys: Map <C-w>! to move window to new tab

I memorized tmux's <prefix>! mapping, but always forget how it is done
in vim.
This commit is contained in:
2025-05-28 14:02:48 +02:00
parent 3d3ba75abb
commit 9dc8e71ce6

View File

@@ -21,6 +21,9 @@ nnoremap <C-w>f <C-w>gf
nnoremap <C-w><C-f> <C-w>gf nnoremap <C-w><C-f> <C-w>gf
nnoremap <C-w>F <C-w>gF nnoremap <C-w>F <C-w>gF
" Analogous mapping to tmux's <prefix>! to move the current window to a new tab
nnoremap <C-w>! <C-w>T
" Substitute command " Substitute command
if (exists('+inccommand') && &inccommand != '') if (exists('+inccommand') && &inccommand != '')
nnoremap S :%s/ nnoremap S :%s/