I'm using NERDTreeToggle function to open NERDTree window, when I'm closing it(with the same function), miniBufExplorer activates, but not the window which I'm been edited before opened NERDTree. How to fix this?
After I close NerdTree window, MiniBufExplorer being activated, not a previously active window(before toggling NerdTree)
332 Views Asked by Artem Vovsia At
2
There are 2 best solutions below
0
Quinn Strahl
On
This boils down to the way Vim behaves; when you close a window, Vim does not move to the last active window. Unfortunately, there's no way around this, as it isn't really viable to remember the "last active window" from Vim's perspective; window ids are not constant in vim, so there's no reliable way to script the exact behaviour you want.
Related Questions in VIM
- Firefox vim mode, can't switch to normal mode in style editor
- How to skip a command in redo
- Vim errorformat multiline string
- How to let Vim tell the switching across several `gvim.exe` processes?
- match wordchar and/or dot string of anylength
- augment the number of lines on indent
- Barebones vim with `nocp`
- Moved .vimrc in a new dir, trying to get it to work
- Copying text from gvim editor to system clipboard works only once per session
- Temporarily declare a word as wrong in vim spellchecker
- Automatically switch back to NerdTree after pressing "o" on file
- How to use Ctags to list all the references of a symbol(tag) in vim?
- Vim + Airline + Linux sloppy exit
- How to delete a WORD in vim in insert mode
- Prevent single letter deletes to spam clipboard manager
Related Questions in NERDTREE
- Automatically switch back to NerdTree after pressing "o" on file
- Unknown function: pathogen#infect
- MacVim+NERDTree: How to open a file as a split in furthest horizontal split
- Vim create a blank buffer instead of exiting
- Vim NERDTree. How to prohibit duplicate files in tabs?
- how to open an empty buffer when vim on directory?
- autochdir and NERDTree
- Disable NERDTree window when opening file in Vim
- MacVim Add all project files to buffer list
- Can Vim NerdTree be used as a buffer explorer
- vim opening file in left split screen
- Browsing a custom model in NERDTree
- Difference of o and go in NERDTree
- How to bring back NERDTree tab if I accidentally closed it?
- VIM - NerdTree - Open Bookmarks when VIM is started
Related Questions in VIM-PLUGIN
- Moved .vimrc in a new dir, trying to get it to work
- Vim: last word on user specific settings?
- VIM - Reformatting indentation and braces
- YouCompleteMe Installation Problems
- How to enable YCM for MacVim only (while keep it disabled for terminal Vim)
- Generic :python command in vim?
- How to add Monaco font in Vim
- Neovim + rainbow
- vimwiki local file link handling
- empty .vimrc causing some scripts to not load?
- Temporarily disable BufWrite script in vim
- Use vim as an ide for javascript development?
- Vim/Ag: files whitelist in AgFromSearch
- What is the differences between the mapping arguments?
- How to increase the height/size of the results/match window for the vim ctrlp plugin?
Related Questions in MINIBUFEXPLORER
- An alternative to minibufexplorer (vim)?
- VIM: Not an editor command: MiniBufExplorer
- Vim won't load file in buffer (when executed from specific working directories)
- After I close NerdTree window, MiniBufExplorer being activated, not a previously active window(before toggling NerdTree)
- Syntastic not working with MiniBufExplorer vim plugin
- Vim minibufexplorer to show only buffers from current vim tab
- How do I reset the splits in Vim?
- No buffer 3 in VIM?
- When i toggle minibufexplorer, how to stop resizing window when nerdtree is open
- How can I delete all open buffers with the MiniBufExplorer vim plugin?
- Move between Vim windows with <tab> and <s-tab>
- Keeping a scratch open, and opening into that scratch in vim
- Tab order in Vim minibufexplorer
- How do you work with large projects in VIM
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
When I look at the plugins site I notice that miniBufExplorer was updated 2004 last time. Possibly it's outdated and has compatibility issues with vim 7. I'd suggest to replace it with buftabs, which works good for me.