diff options
author | Marc Coquand <marc@baemingo.com> | 2023-05-19 14:25:31 -0500 |
---|---|---|
committer | Marc Coquand <marc@baemingo.com> | 2023-05-19 14:25:31 -0500 |
commit | e406288adc8a70197730569c4da3e8c61d24e47d (patch) | |
tree | 4a3763cf19af65d9d90a2e54cbf0ece2aa37ce2e /plugin | |
parent | 63ff0bedaa55a6b2957e958ee727bd524b280143 (diff) | |
download | BufferBrowser-e406288adc8a70197730569c4da3e8c61d24e47d.tar.gz BufferBrowser-e406288adc8a70197730569c4da3e8c61d24e47d.tar.bz2 BufferBrowser-e406288adc8a70197730569c4da3e8c61d24e47d.zip |
Initial version
Diffstat (limited to '')
-rw-r--r-- | plugin/buffer_browser.vim (renamed from plugin/buffer-browser.vim) | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/plugin/buffer-browser.vim b/plugin/buffer_browser.vim index dfdb366..a37f436 100644 --- a/plugin/buffer-browser.vim +++ b/plugin/buffer_browser.vim @@ -1,13 +1,8 @@ if exists('g:loaded_buffer_browser') | finish | endif " prevent loading file twice -let s:save_cpo = &cpo " save user coptions -set cpo&vim " reset them to defaults - " command to run our plugin command! BufferBrowserNext lua require'buffer_browser'.next() command! BufferBrowserPrevious lua require'buffer_browser'.prev() +command! BufferBrowserEcho lua require'buffer_browser'.printBrowserHistory() -let &cpo = s:save_cpo " and restore after -unlet s:save_cpo - -let g:loaded_whid = 1 +let g:loaded_buffer_browser = 1 |