I have the following Vim code:
function! TabClose(...) if a:1 == "" tabonly elseif a:1 == "left" Tabops Close Left elseif a:1 == "right" Tabops Close Right else execute "tabclose " a:1 endif endfunction command -nargs=* TabClose call TabClose("<args>")
I would really like to completely rebind the
So I tried the following.
command -nargs=* tabclose call TabClose("<args>")
But it did not work because
tabclose is called in the function.
How can I name my command
tabclose but still use the original unmodified
tabclose in that function?
nnoremap TC :TabClose), which I find quite convenient for common commands anyway.