aboutsummaryrefslogtreecommitdiffstats
path: root/plugin
diff options
context:
space:
mode:
authorTeddy Wing2020-06-05 00:56:57 +0200
committerTeddy Wing2020-06-05 01:01:00 +0200
commita6d0f1e3faac92053b1569cdd121aa9e762e7316 (patch)
tree009417fd6e9a6babeb42cb6aa317bc3a3372801a /plugin
parentdb346292686876def55603f120badc0faf4b6560 (diff)
downloadvim-tbuffer-a6d0f1e3faac92053b1569cdd121aa9e762e7316.tar.bz2
Move `TBuffer()` to autoload/
Diffstat (limited to 'plugin')
-rw-r--r--plugin/tbuffer.vim12
1 files changed, 1 insertions, 11 deletions
diff --git a/plugin/tbuffer.vim b/plugin/tbuffer.vim
index d909b1b..6428199 100644
--- a/plugin/tbuffer.vim
+++ b/plugin/tbuffer.vim
@@ -1,11 +1 @@
-function! TBuffer(file)
- let switchbuf_save = &switchbuf
-
- let &switchbuf = 'usetab'
-
- execute 'sbuffer ' . a:file
-
- let &switchbuf = switchbuf_save
-endfunction
-
-command! -nargs=1 -complete=buffer TBuffer call TBuffer(<q-args>)
+command! -nargs=1 -complete=buffer TBuffer call tbuffer#TBuffer(<q-args>)