Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MRO buffers #66

Closed
pcapriotti opened this issue Jan 8, 2012 · 4 comments

Comments

@pcapriotti
Copy link

commented Jan 8, 2012

It would be useful to have the option to put the most recently opened buffers at the bottom (or top) of the list. At the moment the buffer list is fixed and is sorted according to the time a buffer was first opened, which is not very useful, in my opinion.

@kien

This comment has been minimized.

Copy link
Owner

commented Jan 8, 2012

The current implementation of the MRU list is similar to that of desktop applications. Changing it to recently-entered is simple, having this in your .vimrc will do:

au BufEnter * cal ctrlp#mrufiles#list(expand('<abuf>', 1))

I'll keep it in mine for a bit and see if it should be the default.

@pcapriotti

This comment has been minimized.

Copy link
Author

commented Jan 8, 2012

Thanks!

This works, but I would prefer to keep the MRU list as it is and only affect the buffer list. Also, it would be nice if the currently opened file were hidden as in the buffer list.

@kien

This comment has been minimized.

Copy link
Owner

commented Jan 8, 2012

Oh I see. But the buffer list actually isn't fixed, it's sorted according to multiple criteria (not the first opened time). I won't change this as it would overlap the MRU list's functionality.

@hail2u

This comment has been minimized.

Copy link
Contributor

commented Jan 9, 2012

+1 to sort MRU "recently-entered" order by default.

@kien kien closed this in f041969 Jan 9, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.