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

Could this be ported to vim? #20

Closed
pianocomposer321 opened this issue Apr 16, 2020 · 2 comments
Closed

Could this be ported to vim? #20

pianocomposer321 opened this issue Apr 16, 2020 · 2 comments

Comments

@pianocomposer321
Copy link

I can't seem to find any plugin like this for Vim. Is there one, or could this be ported to vim/neovim?

@jjssto
Copy link

jjssto commented Apr 17, 2020

I can't seem to find any plugin like this for Vim. Is there one, or could this be ported to vim/neovim?

@pianocomposer321 Something similar can be achieved with a few line of code in the vimrc/init.vim file. The function GetSkeleton(template) on line 69 in my config file opens a template (which is saved in ~/.config/nvim/templates). This function then gets called by autocmnd when a file with a corresponding file ending is opened (line 118-123). https://github.com/jjssto/Config/blob/master/nvim/init.vim

@pianocomposer321
Copy link
Author

pianocomposer321 commented Jul 8, 2020

@jjssto I apologize, I wasn't looking for a boilerplate file but an entire boilerplate file structure, like what this VSCode extension does. I didn't realize when I created this issue that that is all that this atom plugin does.

Anyway, I've created my own plugin for vim that does what I want. Here's the repo if you're interested: https://github.com/pianocomposer321/project-templates.nvim

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