Vim plugin to give you automatic angular dependency expression management
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ftplugin
LICENSE
README.md
examples.gif

README.md

AngularDep.vim

Examples

Automatically update angular injection syntax with vim:

["out", "of", "date", "dependencies", function($brand, $new, dependencies, here) {
	...
}]

Simply put your cursor anywhere on the first line, and type

<Leader>adu

to have the line updated to

["$brand", "$new", "dependencies", "here", function($brand, $new, dependencies, here) {

Should preserve most if not all formatting in the line.

Other features:

<Leader>ado - order dependencies alphabetically
<Leader>ada - add a new dependency with a prompt for the name
<Leader>adr - choose to remove a dependency from a list
<Leader>adc - newly wrap a function with dependency declarations (put your cursor on the f in function)

distributed under the MIT license

Installing:

If you have pathogen, simply git clone git@github.com:MichaelRFairhurst/angular-dep.vim.git within ~/.vim/bundle. Otherwise copy javascript.vim into ~/.vim/ftplugin/javascript.vim.

Configuring:

Currently the only option is to change single quotes or double quotes by defining the following in your .vimrc

let g:angular_dep_quote = '"'