Skip to content

anhari/vim-refills

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vim-refills

This is a vim plugin for adding vim commands to utilize thoughtbot's refills gem.

For example, if you want to generate the hero refill you would run the following command in vim: :RefillHero

This will run the following command in your shell:

rails generate refills:import hero

Help documentation

The help file (accessed via :help vim-refills) now contains anchor links to each refill. Navigate to them in your browser via placing your cursos on the link and typing gx.

Using refills after they have been generated

If you deleted stylesheet sprocket directives you will have to either require the entire refills directory:

@import 'refills/*'

or list each component one by one:

@import 'refills/hero'

You can now use the refill as a partial.

<%= render "refills/hero" %>

About

🍸 Use thoughtbot's refill gem within vim.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published