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

vmcat syntax error #108

Closed
rinchen opened this issue Apr 8, 2015 · 11 comments
Closed

vmcat syntax error #108

rinchen opened this issue Apr 8, 2015 · 11 comments

Comments

@rinchen
Copy link

rinchen commented Apr 8, 2015

Howdy,

I have a file that contains

# The first entry in this file is the destination config file
~/.ssh/config

and when I "less" that file, I see:

1 ./vimcat: 80: ./vimcat: Syntax error: "(" unexpected                                                                                                                                                     
@rkitover
Copy link
Owner

rkitover commented Apr 9, 2015

Can you please give me your OS, distribution and version please?

rkitover added a commit that referenced this issue Apr 9, 2015
The exported variables set when a shell is found in the prologue have to
be removed before invoking vimcat which has the same shell finding code.

All of this has to be more extensively rewritten, this is temporary fix.
@rkitover
Copy link
Owner

rkitover commented Apr 9, 2015

Never mind, I have a temporary fix in master.

@rinchen
Copy link
Author

rinchen commented Apr 9, 2015

@rkitover Ubuntu Vivid Beta 2. I can also get this to fail on man files and my mutt ldap rc file:

# hostname of your ldap server
$ldap_server = 'xxx'

I'm guessing it's having trouble with special characters.

@rinchen
Copy link
Author

rinchen commented Apr 9, 2015

e.g. man chsh

@rinchen
Copy link
Author

rinchen commented Apr 9, 2015

@rkitover current master locks up gnome-terminal when I encounter one of those files. No error, just becomes unresponsive.

ps. Thanks for vimpager. I never realized how much I love it and use it until it doesn't work :-)

@rkitover
Copy link
Owner

I am going to completely rewrite this part of the code today. Hopefully it will work better after that. I'm sorry my temporary fix didn't help you, it helped someone else in issue #11 .

In the meantime, try adding this to your .vimrc :

let vimpager_passthrough = 0

@rinchen
Copy link
Author

rinchen commented Apr 12, 2015

FWIW, This seems to fail for me only on Ubuntu Vivid. It doesn't fail on OS X or Ubuntu 14.04. I am using spf13's vim distro in all places.

@rkitover
Copy link
Owner

Weird because I just upgraded my xubuntu 14.04 to vivid and I did not see the issue, but I will try that VM image once I rewrite the passthrough code.

@rkitover
Copy link
Owner

I installed the spf13 dist on my ubuntu vm, and I noticed that the paging keys in less.vim do not work at all. And I reproduced your issue with short files in passthrough mode. I will see if I can fix this.

@rkitover
Copy link
Owner

The issue with short files and passthrough mode on vivid with spf13 seems to be fixed, now that I rewrote that code.

I still need to figure out how to get less.vim to work correctly with spf13.

@rinchen
Copy link
Author

rinchen commented Apr 29, 2015

This works sooooo much better now. The recent changes have fixed this. Thanks!

@rinchen rinchen closed this as completed Apr 29, 2015
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