On 04/23/2011 11:54 AM, Bee wrote:
To edit the alternate file, is there any difference between these:

nnoremap ,g :e!#<cr>

nnoremap ,g :b!#<cr>

While there may be other differences, you can edit unnamed buffers with ":b!#" while ":e!#" requires that the file exist. Additionally, if the file on-disk has changed, using e! will prompt about a reload while b! will simply jump to the unedited buffer.

Those are a few differences I sussed out by poking at the edges of the two commands.

-tim


--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to