Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VimPipe per buffer #7

Open
samuelsimoes opened this issue Aug 8, 2015 · 2 comments
Open

VimPipe per buffer #7

samuelsimoes opened this issue Aug 8, 2015 · 2 comments

Comments

@samuelsimoes
Copy link

Hi guys, first of all thanks for vim-pipe, it's a great idea!

There's any way to create a "VimPipe per buffer"? I mean, often I query different databases at the "same time" (on different buffers) and I'd be great have some way to set the pipe command per buffer.

I don't know if I doing something wrong, but today if I open a buffer, set :let b:vimpipe_command="psql -d <database1>", open other buffer and set the :let b:vimpipe_command="psql -d <database2>" the second buffer's queries run against the database1, btw, the VimPipe split is the same to both opened buffers.

Thanks.

@krisajenkins
Copy link
Owner

Hmm...that should work. It certainly works for me (Vim 7.4). What do you see if you do :let vimpipe_command in each buffer?

@samuelsimoes
Copy link
Author

I recorded a gif. (Vim version 7.4.383)

vim-pipe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants