Comments (2)
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
from file-templates.
@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
from file-templates.
Related Issues (17)
- Workspace.getActiveEditor is deprecated.
- File name macro HOT 2
- @email@ and @author@ was invalid
- List of templates doesn't show HOT 4
- Failed to load init file, process is not defined HOT 3
- Request: load template into current file HOT 1
- Request: Add 'New file from template' to file manager right-click menu
- Accept macro when creating a file
- Feature request: support of sync-settings
- Uncaught TypeError: string.indexOf is not a function
- Workspace.getActiveEditor is deprecated.
- Workspace.getActiveEditor is deprecated. HOT 1
- Can't create new template - Cannot read property 'getText' of undefined. HOT 5
- Set cursor location
- Uncaught TypeError: Cannot read property 'getText' of undefined
- Petition Placeholder HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from file-templates.