Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tyru/transbuffer.vim
Move buffers across multiple instances of Vim like modern browser(Google Chrome, Firefox)'s tab
https://github.com/tyru/transbuffer.vim
clientserver remote tab tabpage vim
Last synced: about 1 month ago
JSON representation
Move buffers across multiple instances of Vim like modern browser(Google Chrome, Firefox)'s tab
- Host: GitHub
- URL: https://github.com/tyru/transbuffer.vim
- Owner: tyru
- Created: 2013-08-09T01:08:02.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-02-18T16:08:42.000Z (over 7 years ago)
- Last Synced: 2023-04-15T16:13:22.031Z (over 1 year ago)
- Topics: clientserver, remote, tab, tabpage, vim
- Language: Vim script
- Size: 17.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
TransBuffer.vim
===============Move buffers across multiple instances of Vim like modern browser(Google Chrome, Firefox)'s tab.
Introduction
===============Two vim instances are running.
--------- ---------
| GVIM1 | | GVIM2 |
--------- ---------and GVIM1 is editing `hello.txt`.
The next two commands will move
hello.txt buffer to GVIM2. (and GVIM1 buffer is closed)```viml
" Execute this command on GVIM2.
:TransGetBuffer GVIM1 hello.txt
```or
```viml
" Execute this command on GVIM1.
" (you can omit "hello.txt" argument
" if current buffer is "hello.txt")
:TransPutBuffer GVIM2 hello.txt
```You can complete arguments by pressing `wildchar`.
If you do not change `wildchar` in .vimrc,
`` is the default key for `wildchar`.```viml
" If you press here,
" you can complete Vim instances currently running.
:TransPutBuffer
``````viml
" If you press here,
" you can complete buffers currently editing on GVIM1.
" (please remember you can use to list up all candidates)
:TransPutBuffer GVIM1
```If you want to open a current buffer on a new Vim instance:
```viml
:TransPutBuffer +NEWVIM
```will run a new Vim instance whose `v:servername` is "NEWVIM".
License
===============
NEW BSDAuthor
===============
tyru <[email protected]>