-
Notifications
You must be signed in to change notification settings - Fork 83
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
Doesn't behave like vim for --remote-silent #13
Comments
|
So, I rewrote the script quite a bit. Please test the latest changes. Any Moreover, |
Looks good! thank you 😄 |
Well, by now I'm pretty sure that it's working, but please reopen if it's not the case for you. Thanks for bringing this up! |
Is it possible to make |
As you already noticed, an autocmd is used for Of course there are buffer-local autocmds, so it could do the same on What exactly is your use case? Maybe we can work around it. |
I tend to just keep a Neovim instance open and use it for editing and terminal multiplexing. I'd like to use |
So, the actual wait isn't really important within You could do something like this: export EDITOR=nvr
nvr() {
[[ -n "$VIM" ]] && command nvr || command nvr --remote-wait
} ( |
Oh, I see. Actually, the only thing I can't think of right now is a reliable way to detect if we're inside or outside of I try to come up with a PoC that relies on the user having the following in his vimrc: if has('nvim')
let $NVIM_TERMINAL = 1
endif |
This requires $NVIM_TERMINAL to be set. Put this in your vimrc: if has('nvim') let $NVIM_TERMINAL = 1 endif References #13
Please pull from master and put what I wrote above in your vimrc. Hopefully it should work now. |
That works just great! Thank you so much! |
|
I have this function defined so I can reuse the same vim per tmux window.
It works perfectly: first vim foo.txt creates a vim server editing the file.
then from another pane vim bar.txt will connect to the first vim and open bar.txt there.
now if I use nvr:
The first foo.txt doesn't create the first neovim instance, just returns silently.
I gonna try to figure out what is going wrong but maybe you have idea about it ?
The text was updated successfully, but these errors were encountered: