emacs-evil / evil

The extensible vi layer for Emacs.
GNU General Public License v3.0
3.38k stars 281 forks source link

:next and :rewind missing #477

Open TheBB opened 9 years ago

TheBB commented 9 years ago

Originally reported by: Stacey Campbell (Bitbucket: staceycampbell, GitHub: staceycampbell)


vi has the ability to sequentially edit files listed on the command line at invocation. E.g.

$ vi file1 file2 file3

...can be navigated with :n. Rewind (:rew) moves the sequence back to the first file.

More here: http://vimdoc.sourceforge.net/htmldoc/editing.html


TheBB commented 9 years ago

Original comment by Frank Fischer (Bitbucket: lyro, GitHub: lyro):


I think this is outside of Evil's scope, because it is more an environment issue (as everything about windows, buffers and files, which is usually different in Emacs and Vim, e.g. Emacs buffers do not have numbers). Evil only focuses on the editing part and leaves everything else to Emacs.

And it's probably not that easy, because you would also have to take care of emacsclient, which does not even run a fresh Emacs instance.

However, we would be happy to accept any patches (although this functionality should probably go to an extra elisp package, which could then easily be bound to certain ex commands).