Skip to content

vim-lastplace does not work with templates #15

@scottchiefbaker

Description

@scottchiefbaker

I'm attempting to use a default template for new Perl files with this command:

autocmd BufNewFile *.pl 0r ~/.vim/perl/base_template.pl

I would like Vim to start the cursor on Line 11 of the template which is done like this:

autocmd BufNewFile *.pl 0r ~/.vim/perl/base_template.pl | 11

With vim-lastplace enabled when I create a new .pl file it loads the template but always puts the cursor on line 0. If I disable vim-lastplace then it starts on line 11.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions