Skip to content

Instantly share code, notes, and snippets.

@cherryramatisdev
Created August 22, 2023 22:31
Show Gist options
  • Save cherryramatisdev/eb10596e3277836b08afb3097a555297 to your computer and use it in GitHub Desktop.
Save cherryramatisdev/eb10596e3277836b08afb3097a555297 to your computer and use it in GitHub Desktop.
function! TransformSplitIntoTab() abort
let l:path = expand('%')
call execute(':wq!')
call execute(':tabnew ' . l:path)
endfunction
nnoremap <c-w>! :call TransformSplitIntoTab()<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment