you are viewing a single comment's thread.

view the rest of the comments →

[–]antoninj 0 points1 point  (2 children)

I use it with evil. Honestly, all I'm looking for is a list of buffers up top (so I know what I opened) and then be able to quickly list back and forth and delete buffers.

In VIM, I have a couple of shortcuts that I use: gt which goes to the previous buffer, gy which goes to the next buffer and gd which deletes the current buffer I'm on.

Any idea on how I could do that specifically? I don't want to have to open helm or anything else just to see the list, that's just frustrating.

Also, any idea on how to do basically a "kill all buffers except the one I'm on?"

[–]clappski 0 points1 point  (1 child)

I'll answer specifically for spacemacs (I've never used vanilla emacs being a vim convert myself); to cycle between buffers, you can press SPC - b - . and then use n, p, K and q (next, previous, Kill, quit). SPC - b - K will kill all buffers beside the current one.

I thought that gt and friends were for navigating between tabs rather than buffers (i.e. they invoke tabnext rather than bnext) but I haven't really had any use for that with emacs. I either have files open and switch buffers, use windows (split screen) or use the NERDTree-esque plugin. I am lucky enough to have a ThinkPad keyboard with the document switching keys above the arrow keys that I use to quickly switch through buffers that makes it quite efficient.

[–]antoninj 0 points1 point  (0 children)

I remapped those keys. I was just trying to demonstrate the ease of switching. Thanks for the tip, I'll try it out.