"============================================================================= " Copyright: Copyright (C) 2001 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, " bufexplorer.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: bufexplorer.vim " Description: Buffer Explorer Vim Plugin " Maintainer: Jeff Lanzarotta (jefflanzarotta@yahoo.com) " URL: http://lanzarotta.tripod.com/vim/plugin/6/bufexplorer.vim.zip " Last Change: Monday, November 19, 2001 " Version: 6.0.7 " Usage: Normally, this file should reside in the plugins " directory and be automatically sourced. If not, you must " manually source this file using ':source bufexplorer.vim'. " " Run ':BufExplorer' to launch the explorer and runs the " user-specified command in the current window, or " ':SBufExplorer' to launch the explorer and run the " user-specified command in the the newly split window. " " You may use the default keymappings of " " be - Opens BufExplorer " bs - Opens split windows BufExplorer " " or you may want to add something like the following " three key mappings to your _vimrc/.vimrc file. " " map b :BufExplorer " map B :SBufExplorer " map :BufExplorer " " If the current buffer is modified, the current window is " always split. " " To control where the new split windows goes relative to " the current window, use the following: " " To put the new window above the current use: " let g:bufExplorerSplitBelow=0 " To put the new window below the current use: " let g:bufExplorerSplitBelow=1 " " The default for this is to split 'above'. " " History: 6.0.7 - Thanks to Brett Carlane for some great enhancements. " Some are added, some are not, yet. Added highlighting of " current and alternate filenames. Added spliting of " path/filename toggle. Reworked ShowBuffers(). " Changed my email address. " 6.0.6 - Copyright notice added. Fixed problem with the " SortListing() function failing when there was only one " buffer to display. " 6.0.5 - Fixed problems reported by David Pascoe, in that " you where unable to hit 'd' on a buffer that belonged to a " files that nolonger existed and that the 'yank' buffer was " being overridden by the help text when the bufexplorer was " opened. " 6.0.4 - Thanks to Charles Campbell for making this plugin " more plugin *compliant*, adding default keymappings " of be and bs as well as fixing the " 'w:sortDirLabel not being defined' bug. " 6.0.3 - Added sorting capabilities. Sort taken from " explorer.vim. " 6.0.2 - Can't remember. "============================================================================= " Has this already been loaded? if exists("loaded_bufexplorer") finish endif let loaded_bufexplorer = 1 if !hasmapto('StartBufExplorer') map be StartBufExplorer endif if !hasmapto('SplitBufExplorer') map bs SplitBufExplorer endif map