aboutsummaryrefslogtreecommitdiff
path: root/plugin/buffer_browser.vim
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/buffer_browser.vim
parent63ff0bedaa55a6b2957e958ee727bd524b280143 (diff)
downloadBufferBrowser-e406288adc8a70197730569c4da3e8c61d24e47d.tar.gz
BufferBrowser-e406288adc8a70197730569c4da3e8c61d24e47d.tar.bz2
BufferBrowser-e406288adc8a70197730569c4da3e8c61d24e47d.zip
Initial version
Diffstat (limited to 'plugin/buffer_browser.vim')
-rw-r--r--plugin/buffer_browser.vim8
1 files changed, 8 insertions, 0 deletions
diff --git a/plugin/buffer_browser.vim b/plugin/buffer_browser.vim
new file mode 100644
index 0000000..a37f436
--- /dev/null
+++ b/plugin/buffer_browser.vim
@@ -0,0 +1,8 @@
+if exists('g:loaded_buffer_browser') | finish | endif " prevent loading file twice
+
+" 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 g:loaded_buffer_browser = 1