Support opening files in buffers#40
Open
exAspArk wants to merge 1 commit into
Open
Conversation
Owner
|
In Vim, you can have only one buffer associated with a given file. When you open a file from the MRU list, it is always opened in a new buffer (independent of whether it is opened in a new window or a tab page or an existing window). Are you referring to opening the file in the same window from which the MRU command was invoked (even if the file is open in some other window)? |
Contributor
|
Maybe @exAspArk meant that no window is reused, if a buffer with the file is already there? if bufexists(esc_fname)
exe 'buffer ' . esc_fname
else
exe 'edit ' . esc_fname
endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey 👋
Not sure if anyone else needs it, but I wanted to be able to open files in a new buffer instead of windows or tabs. For example, by setting
let MRU_Open_File_Use_Buffers = 1or pressingbexAspArk/dotfiles@c9859b9.Feel free to reject if you don't want to have this feature merged ✌️