Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vim-lastplace does not work with templates #15

Closed
scottchiefbaker opened this issue Jun 5, 2017 · 2 comments
Closed

vim-lastplace does not work with templates #15

scottchiefbaker opened this issue Jun 5, 2017 · 2 comments

Comments

@scottchiefbaker
Copy link

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.

@farmergreg
Copy link
Owner

@scottchiefbaker thanks for the bug report! I've pushed a fix - please try it out and let me know if it resolves the issue.

Thanks again for the bug report!

@scottchiefbaker
Copy link
Author

Works for me! Thanks for the quick fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants