Skip to content

Cursor position not honoured after Comments.shebang #6

@openstrike

Description

@openstrike

Hello,

I've just upgraded vim, perl and perl-support and TBH, things are working surprisingly well. However I have one issue to report regarding the Comments.shebang used in Perl::FileSkeleton::Script. As it stands in the default templates the position of <CURSOR> is not honoured when opening a new *.pl script - the cursor is at the very top left (on the hash of the shebang line) and the user is in insert mode.

Other filetypes (*.t, *.pm, etc) are fine so I was able to narrow it down to the shebang line. Furthermore, if the Comments.shebang is moved to the end of the list in Perl::FileSkeleton::Script, ie.

SetProperty ( 'Perl::FileSkeleton::Script', 'Comments.file description pl; ;Skeleton.script-use;Comments.shebang' )

then the position of <CURSOR> is honoured, but of course the shebang line is now at the end of the file which is no use.

Obviously, I can work around this for now quite simply. However I wanted to raise it in case it was indicative of some wider problem.

I am using a fresh clone of perl-support from this repo (up to f3f5881) with vim 8.2.4649 (and perl 5.34.0). The shebang line it puts in is #!/usr/bin/env perl

Let me know if I can help debugging this further. If you can't reproduce this then it's likely something else odd in my personal config and I am sorry to have troubled you with it.

Pete

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions