On Wed, Mar 7, 2012 at 11:32 AM, Rutger Hofman
<address@hidden> wrote:
On 03/07/2012 11:09 AM, Rutger Hofman wrote:
On 03/07/2012 09:12 AM, David Kastrup wrote:
Stjepan Horvat<address@hidden> writes:
On Tue, Mar 6, 2012 at 5:48 PM, David Kastrup<address@hidden> wrote:
Stjepan Horvat<address@hidden> writes:
Hello..can somebody please tell me how to get vim and a pdf viewer
(xpdf or evince of zathura) to work with vim lilypond-invoke-editor
function..i read everything that is on the web
[snip]
Have you set up your EDITOR environment variable? I quote:
The program ‘lilypond-invoke-editor’ is a small helper program. It
will invoke an editor for the special textedit URIs, and run a web
browser for others. It tests the environment variable EDITOR for the
following patterns,
emacs
this will invoke
emacsclient --no-wait +line:column file
gvim
this will invoke
gvim --remote +:line:normcolumn file
nedit
this will invoke
nc -noask +line file'
The environment variable LYEDITOR is used to override this. It
contains the command line to start the editor, where %(file)s,
%(column)s, %(line)s is replaced with the file, column and line
respectively. The setting
emacsclient --no-wait +%(line)s:%(column)s %(file)s
for LYEDITOR is equivalent to the standard emacsclient invocation.
From gvim's man page, I understand how one can position the cursor at
startup on a line (+line or +:line), but I do /not/ grasp how it is put
on a column. Indeed, gvim gives me an error if I follow the
lilypond-invoke-editor example: the +:line:column syntax is wrong.
Oops, sorry, I was wrong here. I cut out the 'norm' thingy in my test. Wrong. It puts the cursor on the column. Sorry for the noise.