"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" "" Buffergator "" "" Vim document buffer navigation utility "" "" Copyright 2011 Jeet Sukumaran. "" "" This program is free software; you can redistribute it and/or modify "" it under the terms of the GNU General Public License as published by "" the Free Software Foundation; either version 3 of the License, or "" (at your option) any later version. "" "" This program is distributed in the hope that it will be useful, "" but WITHOUT ANY WARRANTY; without even the implied warranty of "" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the "" GNU General Public License "" for more details. """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " Reload and Compatibility Guard <>FOLD>> " Global MRU Initialization <')) autocmd BufRead * call BuffergatorUpdateMRU(expand('')) autocmd BufNewFile * call BuffergatorUpdateMRU(expand('')) autocmd BufWritePost * call BuffergatorUpdateMRU(expand('')) augroup NONE " >>FOLD>> " Public Command and Key Maps <") " command! -nargs=* BuffergatorMruCycleNext :call buffergator#BuffergatorCycleMru(1, "") " command! -nargs=? -bang BuffergatorMruList :call buffergator#BuffergatorEchoMruList('') " if !exists('g:buffergator_suppress_keymaps') || !g:buffergator_suppress_keymaps " " nnoremap :BuffergatorToggle " nnoremap b :BuffergatorOpen " nnoremap B :BuffergatorClose " nnoremap t :BuffergatorTabsOpen " nnoremap to :BuffergatorTabsOpen " nnoremap tc :BuffergatorTabsClose " nnoremap T :BuffergatorTabsClose " if !exists('g:buffergator_suppress_mru_switching_keymaps') || !g:buffergator_suppress_mru_switching_keymaps " nnoremap :BuffergatorMruCyclePrev " nnoremap :BuffergatorMruCycleNext " if !exists('g:buffergator_keep_old_mru_switching_keymaps') || !g:buffergator_keep_old_mru_switching_keymaps " nnoremap gb :BuffergatorMruCyclePrev " nnoremap gB :BuffergatorMruCycleNext " else " nnoremap [b :BuffergatorMruCyclePrev " nnoremap ]b :BuffergatorMruCycleNext " endif " endif " if !exists('g:buffergator_suppress_mru_switch_into_splits_keymaps') || !g:buffergator_suppress_mru_switch_into_splits_keymaps " nnoremap :BuffergatorMruCyclePrev leftabove vert sbuffer " nnoremap :BuffergatorMruCyclePrev leftabove sbuffer " nnoremap :BuffergatorMruCyclePrev rightbelow vert sbuffer " nnoremap :BuffergatorMruCyclePrev rightbelow sbuffer " nnoremap :BuffergatorMruCycleNext leftabove vert sbuffer " nnoremap :BuffergatorMruCycleNext leftabove sbuffer " nnoremap :BuffergatorMruCycleNext rightbelow vert sbuffer " nnoremap :BuffergatorMruCycleNext rightbelow sbuffer " endif " endif " >>FOLD>> " Restore State <>FOLD>> " vim:foldlevel=4: