Deleting buffer without losing the split window

Christoph LANGE langec at web.de
Fri Mar 8 13:11:06 CET 2013


2013-03-08 10:05 Sanel Zukan:
> I'm just curious how do you guys handle this case? I often have screen
> split with a couple of buffers and when I delete one of them, split
> got messed up.

Interesting, and thanks for pointing out that vim trick to work around
it.  I have just got so used to this annoyance (in vim, that is).  In
evil I had been using Emacs-style C-x k anyway, which doesn't have this
problem.

> Vim have one cool trick for this: ':bp|bd #' and evil will only execute
> ':bp' part. Is it hard to add similar feature (this looks to me like
> piping the commands) or Emacs has something better under the belt?

The pipe is somewhat misleading; here's what the vim help says:

--- %< --- %< --- %< --- %< --- %< --- %< --- %< --- %< --- %< --- %< ---
'|' can be used to separate commands, so you can give multiple commands
in one
line.  If you want to use '|' in an argument, precede it with '\'.
--- %< --- %< --- %< --- %< --- %< --- %< --- %< --- %< --- %< --- %< ---

Cheers,

Christoph

-- 
Christoph Lange, http://www.facebook.com/ch.lange, Skype duke4701



More information about the implementations-list mailing list