A unite source for search javascript functions
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
autoload/unite/sources
Readme.md
Readme.md.zh_CN

Readme.md

Unite-js-func

A plugin of unite.vim helps to find javascript functions quickly.

This plugin is deprecated, consider use denite-extra instead

Features

  • Find function in current file
  • Find function of related files (required by require function)
  • Find function of current module, one specified module, all dependency modules
  • Support module alias (browser field in package.json)

Install

A npm module need to be installed globally, install node and run:

npm install -g parsefunc

Install unite, vimproc and units-js-func, for example with vundle, you can add:

Plugin 'chemzqm/unite-js-func'
" unite is requried
Plugin 'Shougo/unite.vim'
" vimproc is required by unite
Plugin 'Shougo/vimproc'

to your .vimrc and run:

:so ~/.vimrc
:BundleInstall

Usage

  • Find function of current file

    :Unite func
    
  • Find function of related files (exclude ralated modules)

    :Unite func:e
    
  • Find function of a specified related module

    :Unite func:m:module_name
    
  • Find function of current module

    :Unite func:t
    
  • FInd function of all related modules

    :Unite func:m
    

My vim configuration for this plugin https://gist.github.com/chemzqm/7501f2ba0ccab3e5030c#file-vimrc-vim

Thanks