vim plugin for perl hackers
Vim script
Pull request Compare This branch is 2 commits ahead, 222 commits behind c9s:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
plugin
Makefile
README

README

 cpan.vim
 Vim plugin for perl hackers

 vim:fdm=syntax:et:sw=2:

 &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

 This file is free software; you can redistribute it and/or modify it under
 the terms of the GNU General Public License as published by the Free
 Software Foundation; either version 2, or (at your option) any later
 version.
 
 This file is distributed in the hope that it will be useful, but WITHOUT ANY
 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
 details.
 
 You should have received a copy of the GNU General Public License along with
 GNU Emacs; see the file COPYING.  If not, write to the Free Software
 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
 USA.

 &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

 Author: Cornelius <cornelius.howl@gmail.com>
 Date: Sun Sep 19 10:47:15 2009
 Keywords: perl , cpan , vim

 Features:
   * provide a quick way to search install cpan modules
   * easily open module file or in new tab
   * cpan module completion
   * browser integration

 Install:

   $ make install 

 Usage:
   CPAN Window:
       1. 

           type <C-c><C-m> to open cpan window horizontally
           type <C-c><C-v> to open cpan window vertically

       2. type pattern to search cpan modules

       3. 
           - press <enter> to go to the first matched module file.
           - press <C-t> to go to the first matched module file in new tab.
           - press @ to search module by current pattern in your browser
           - support bash style bindings , eg: <C-a>, <C-e>, <C-f>, <C-b>
           - press <Tab> to switch cpan window mode (search all modules or
                 installed modules)

       4. <C-n> or <C-p> to select result

       5. 
           - press <enter> to go to the module file.
           - press t to go to the module file in new tab
           - press @ to see the module documentation in your browser
           - press ! to see the module documentation by perldoc command
           - press $ to see the module documentation inside vim window
           - press I to install the module
           - support bash style bindings , eg: <C-a>, <C-e>, <C-f>, <C-b>

       6. 
           <ESC><ESC> to close cpan window

   ModuleName Completion:
       
       in insert mode: <Ctrl-x><Ctrl-m> for module name completion (installed
       module)

   Inspect Module File Content:
       in normal mode: <Ctrl-c>g to open the module under the cursor in new
       tab

   Pod Helper:
       auto insert function pod: press <C-c><C-p>f on function name (normal mode)

 Commands:

   ReloadModuleCache           
   ReloadInstalledModuleCache 
   ReloadCurrentLibModuleCache 

 Configuration:

        g:cpan_browser_command  : command for launching browser
        g:cpan_win_type         : v (vertical) or s (horizontal) cpan window
        g:cpan_win_width        : cpan window width (when vertical)
        g:cpan_win_height       : cpan window height (when horizontal)
        g:cpan_win_mode         : default cpan window mode 
                             (search installed modules or all modules or currentlib ./lib)
        g:cpan_installed_cache  : filename of installed package cache
        g:cpan_source_cache     : filename of package source cache
        g:cpan_cache_expiry     : cache expirytime in minutes
        g:cpan_max_result       : max search result
        g:cpan_install_command  : command for installing cpan modules
        g:cpan_user_defined_sources : user-defined package source paths

 &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&