On 11/3/06, Jean-Rene David <[EMAIL PROTECTED]> wrote:

I thought of using :q but that closes vim if only
one window is open.

Am I missing something obvious?

I use :Sexplore (or :Vexplore) to open the explorer. Then it's not a
problem using :q. Or if you really want to be fancy, put this in your
.vimrc:
function MyExplore()
 tabnew
 Explore
 nmap <buffer> <leader>q :q<cr>
endfunction

nmap <F2> :call MyExplore()<cr>

Then F2 opens explorer in a new tab, and <leader>q closes the tab, and
you should be back where you were before pressing F2.

Marius

Reply via email to