Skip to content

dougireton/vim-chef

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-chef

vim-chef is a Vim plugin which detects Chef cookbook and Chef-Repo files and sets the filetype to 'ruby.chef'. This enables other plugins like Syntastic to work with Chef files, e.g. running Foodcritic automatically on file save.

vim-chef also appends to Vim's 'path' to make 'gf' work on include_recipe lines in Chef recipe files. For example, if you have these lines in your cookbook's recipes/default.rb file:

include_recipe 'git'
include_recipe 'git::source'
include_recipe 'current_cookbook::my_other_recipe'

'gf' with the cursor on the recipes above would jump to 'git/recipes/default.rb', 'git/recipes/source.rb', and current_cookbook/recipes/my_other_recipe' respectively.

Installation

If you don't have a preferred installation method, I recommend installing pathogen.vim, and then simply copy and paste:

cd ~/.vim/bundle
git clone git://github.com/dougireton/vim-chef.git

About

Vim ftplugin for enabling gf on include_recipe in Chef

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published