vim-g
vim-g copied to clipboard
Not working under Arch Linux
The plug-in is not working with vim or gvim under Arch Linux (3.12.9-1): vim: v7.4.135; perl: v5.18.2; xdg-open: 1.1.0 rc1 terminal: xfce4-terminal 0.6.3
Hi @hellolj
Please check out the debug branch: https://github.com/szw/vim-g/commit/aaefb72c49d72f4d296be65ecb559c588a612c4d and please paste the output of vim-g-debug.txt file.
hi, @szw I did "git pull origin debug", git checkout debug, did the ":G hello" test, but can't find the output file (or, where am I supposed to find the txt file?)
Please check https://github.com/szw/vim-g/commit/fb93b26352d73e567584922e58bd722079b180ea. The file should be under your home dir now.
Just left my office(midnight). I will update the result about 8 hours later. thanks.
no output file was generated in the home directory.
Hmm, that's strange. Please, paste a link to your .vimrc and check the plugin under a vanilla Vim (without any other plugins).
Here is my .vimrc file: https://gist.github.com/hellolj/758837583064b44a30c4
I moved all other plugins into a temporary directory and started the Vim again with only vim-g loaded.
Still, no txt file was generated.
Thanks. Everything looks fine. Please, check with the latest commit. The file should be generated here: ~/vim-g-debug.txt
. If still no luck, please perform following command: :call g#Goo("foobar")
.
It worked this time. The following is the content from the debug txt file: perl xdg-open http://google.com/search?q= test
Yeah. Thanks a lot for cooperation :). I'm confused why this doesn't open your browser. Today's evening I'll try to spend more time on that. What shell are you using? Bash? Zsh? What teminal?
Edit: I see the terminal in the beginning of this topic.
I am using zsh generally with xfce4-terminal. I also tried calling vim from bash, but no difference.
:) No problem. Thanks for your efforts to fix the issue.
I'm running Arch, zsh, xterm and I have no problems.
@hellolj does xdg-open work properly in your terminal?
@hellolj yeah please make sure you have xdg-open configured properly. Also please check how it behaves with no other plugins in Vim. Perhaps on weekend I'll got some spare time to try to reproduce this bug on Arch (I need to install it in the VM).
Hi, @lordi @szw , thanks for the attention to the problem. I tried xdg-open in terminal ("xdg-open www.google.com") and it works fine. I tried this on two installations of Arch Linux (I copied .vimrc and .vim directly to another installation though) but still not working.
One bit information might be helpful: when I test "xdg-open www.google.com" in the terminal, thoug the webpage is loaded as expected in firefox, the terminal pops up one error information: ''process:2347): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed "
I get the same Glib message, and vim-g works for me on Arch. So it can't be that. :)
Did you try with all other vim plugins and settings disabled?
Try sudo cpan URI::Escape
It didn't work for me either and this error message was printed in the shell:
Can't locate URI/Escape.pm in @INC (you may need to install the URI::Escape module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .).
BEGIN failed--compilation aborted.
but all I had to do was install perl-uri
from the official repositories:
# pacman -S perl-uri