"============================================================================= " Copyright: Copyright (C) 2001 Bindu Wavell & Jeff Lanzarotta " Permission is hereby granted to use and distribute this code, " with or without modifications, provided that this copyright " notice is copied with it. Like anything else that's free, " minibufexplorer.vim is provided *as is* and comes with no " warranty of any kind, either expressed or implied. In no " event will the copyright holder be liable for any damamges " resulting from the use of this software. " " Name Of File: minibufexpl.vim " Description: Mini Buffer Explorer Vim Plugin " Maintainer: Bindu Wavell mbe - Opens MiniBufExplorer " " or you may want to add something like the following " key mapping to your _vimrc/.vimrc file. " " map b :MiniBufExplorer " " However, in most cases you won't need any key-bindings at all. " " To control where the new split window goes relative to " the current window, use the setting: " " let g:miniBufExplSplitBelow=0 " Put new window above " " current. " let g:miniBufExplSplitBelow=1 " Put new window below " " current. " " The default for this is read from the &splitbellow vim option. " " By default we are now (as of 6.0.2) forcing the -MiniBufExplorer- " window to open up at the edge of the screen. You can turn this " off by setting the following variable in your .vimrc: " " let g:miniBufExplSplitToEdge = 0 " " By default we are now (as of 6.0.1) turning on the MoreThanOne " option. This stops the -MiniBufExplorer- from opening " automatically until more than one eligible buffer is available. " You can turn this feature off by setting the following variable " in your .vimrc: " " let g:miniBufExplorerMoreThanOne=0 " " To enable the optional mapping of Control + Vim Direction Keys " [hjkl] to window movement commands, you can put the following into " your .vimrc: " " let g:miniBufExplMapWindowNavVim = 1 " " To enable the optional mapping of Control + Arrow Keys to window " movement commands, you can put the following into your .vimrc: " " let g:miniBufExplMapWindowNavArrows = 1 " " To enable the optional mapping of and to a " function that will bring up the next or previous buffer in the " current window, you can put the following into your .vimrc: " " let g:miniBufExplMapCTabSwitchBufs = 1 " " To enable the optional mapping of and to mappings " that will move to the next and previous (respectively) window, you " can put the following into your .vimrc: " " let g:miniBufExplMapCTabSwitchWindows = 1 " " NOTE: If you set the ...TabSwitchBufs AND ...TabSwitchWindows, " ...TabSwitchBufs will be enabled and ...TabSwitchWIndows " will not. " " " History: 6.0.6 Fixed register overwrite bug found by Sébastien Pierre " 6.0.5 Fixed an issue with window sizing when we run out of " buffers. Also fixed some weird commenting bugs. " Added more optional fancy window/buffer navigation: " o You can turn on the capability to use control and the " arrow keys to move between windows. " o You can turn on the ability to use and " to open the next and previous (respectively) " buffer in the current window. " o You can turn on the ability to use and " to switch windows (forward and backwards " respectively.) " 6.0.4 Added optional fancy window navigation: " o Holding down control and pressing a vim direction " [hjkl] will switch windows in the indicated direction. " 6.0.3 Changed buffer name to -MiniBufExplorer- to resolve " Issue in filename pattern matching on Windows. " 6.0.2 2 Changes requested by Suresh Govindachar " Added SplitToEdge option and set it on by default " Added tab and shift-tab mappings in [MBE] window " 6.0.1 Added MoreThanOne option and set it on by default " MiniBufExplorer will not automatically open until " more than one eligible buffers are opened. This " reduces cluter when you are only working on a " single file. " 6.0.0 Initial Release on November 20, 2001 "============================================================================= " " Has this plugin already been loaded? " if exists('loaded_minibufexplorer') call DEBUG('MiniBufExplorer already loaded!', 5) finish endif let loaded_minibufexplorer = 1 " " Setup mbe map " if !hasmapto('MiniBufExplorer') map mbe MiniBufExplorer endif " " Setup