Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
vim plugin for perl hackers. for you to search installed module/all modules and integrated with perldoc window
VimL

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
plugin
utils
Makefile
README
TODO
perl-functions
perl-keywords

README

 cpan.vim
 Vim plugin for perl hackers {{{

 vim:fdm=marker: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@DELETE-ME.gmail.com>
 Site: http://oulixe.us/
 Date: Sun Sep 19 10:47:15 2009
 Screencast:  http://www.youtube.com/watch?v=erF0NWUIbr4  <cpan.vim>

 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

   Function Search Window:

       press <C-c><C-f> to open function search window
       <C-n>,<C-p> to select result 
       <Enter> to open perldoc 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     
        g:cpan_win_height     
        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

 &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&
 }}}

Something went wrong with that request. Please try again.