1. when I start the workflow, it does what it should (open the text in MacVim), but beeps three times indicating that something is wrong, and the Growl/Notification Center message is empty
2. more importantly - line endings are replaced with ^M, so the whole text is on one line making it uneditable...
Is there any way to avoid point 2? QuickCursor used to open the file with "real" line endings.
I had the problem with the line endings in MacVim as well. It is caused by the fact that the script uses CR as the line endings (and not LF or CRLF). By default, MacVim does not handle this. You can solve the problem if you explicitly tell vim to allow mac fileformat (and not only unix and dos), i.e. when I put
Edit with… 4.1 beta for Alfred 4: A QuickCursor alternative
in Share your Workflows
Posted · Edited by ashcatch
I had the problem with the line endings in MacVim as well. It is caused by the fact that the script uses CR as the line endings (and not LF or CRLF). By default, MacVim does not handle this. You can solve the problem if you explicitly tell vim to allow mac fileformat (and not only unix and dos), i.e. when I put
into my .vimrc, then it works correctly for me.
Rainer