aboutsummaryrefslogtreecommitdiff
path: root/plugin
diff options
context:
space:
mode:
authorMarc Coquand <marc@baemingo.com>2023-05-19 14:25:31 -0500
committerMarc Coquand <marc@baemingo.com>2023-05-19 14:25:31 -0500
commite406288adc8a70197730569c4da3e8c61d24e47d (patch)
tree4a3763cf19af65d9d90a2e54cbf0ece2aa37ce2e /plugin
parent63ff0bedaa55a6b2957e958ee727bd524b280143 (diff)
downloadBufferBrowser-e406288adc8a70197730569c4da3e8c61d24e47d.tar.gz
BufferBrowser-e406288adc8a70197730569c4da3e8c61d24e47d.tar.bz2
BufferBrowser-e406288adc8a70197730569c4da3e8c61d24e47d.zip
Initial version
Diffstat (limited to 'plugin')
-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