A couple of questions
antono
self at antono.info
Sat Feb 18 03:41:15 CET 2012
On Thu 16 Feb 2012 02:05:48 PM FET, Keshav Kini wrote:
> > In vim, when there are multiple buffers but one window, :q will quit
> > vim; the same way evil does. When there are multiple windows (or
> > splits), :q will quit selected one. Again, evil does the same. Hoping
> > I got you correctly :)
>
> Hmm. By "multiple buffers but one window", do you mean when you supply
> multiple filenames to vim on the command line, and then use :next and
> :previous to move between them? I wouldn't have thought that corresponds
> to the way emacs can have multiple buffers open concurrently, especially
> since vim actually closes the current file when you use :next or :prev,
> unlike what happens in emacs when you select a different buffer.
>
> It seems to me that emacs with its buffers is a lot more similar to how
> vim works when you use ":tabedit" to open a new file and use [count]gt
> and [count]gT to switch between them. And :q does indeed close a single
> tab and not close vim entirely, when multiple tabs are open.
Check out ":help buffers" in vim :)
Vim has buffers similar to emacs (hovewer much less usable ui for
navigation). You can create new buffer with :edit /tmp/file.txt and
list buffers with :buffers. And :q quits vim even if you have several
open buffers. So evil is perfect here :)
More information about the implementations-list
mailing list