On 8/23/06, Groleo Marius <[EMAIL PROTECTED]> wrote:
I can't find any reference to the $subject, nor on web nor in :help.
Basically, I'm searching for a method to open a new file in its own tab.
Opening a new file might mean :e or a CTRL-]
To remap :e to open file in new tab ... there is a solution for that:
" remap :e to open file in new tab
command! -nargs=* -complete=file E if expand('%')=='' &&
line('$')==1 && getline(1)=='' | :edit <args> | else | :tabnew <args>
| endif
cabbrev e <c-R>=(getcmdtype()==':' && getcmdpos()==1 ? 'E' : 'e')<cr>
" this comes from tip http://www.vim.org/tips/tip.php?tip_id=1285
For Ctrl-], I don't know the solution.
Yakov