|
|
A bash script to do the same thing (better?)
This might be a better idea. Create a file (e.g., /usr/local/bin/gvim-pdfsync) with these contents:
Also make sure to chmod it 0755. You can then execute gvim-pdfsync "%file" %line to open Vim at that line %line of file %file.
This prevents an error on my system that occurs with the "buffer" line. It also handles files with spaces a little better. Finally, it is a little easier to implement in your PDFSync-compatible viewers. In fact, I have tested it in Skim and it works great. Just do: Command: gvim-pdfsync Arguments: "%file" %line Hope that helps.
Update: A bash script to do the same thing (better?)
This is a better version.
This will fix problems when you have multiple files open with the same base name.
Update (be sure to add /bin/sh): A bash script to do the same thing (better?)
Of course, be sure to add the #!/bin/bash at the top of the script.
Bugfix (A bash script to do the same thing (better?))
macosxhints.com escaped things that it shouldn't have. Now I'll use a code environment.
You should use THIS SCRIPT. Alternatively, just use the script I've linked here.
A few remarks
I modified a bit your script for my setup : since I don't like the error message of z0 if there are no folds under the cursor, I removed that line.
Since I usually run vim in a Terminal with the corresponding title set I had to change the --- |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysNo new commentsLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.36 seconds |
|