sponsor Vim development Vim logo Vim Book Ad

chapa : go to, comment or visually select the next/previous function, class or method

 script karma  Rating 3/5, Downloaded by 794    Comments, bugs, improvements  Vim wiki

created by
Alfredo Deza
 
script type
utility
 
description
Allows you to move to previous/next class, function or method

toggle comments, fold or visually select the next/previous class, function or method.

Currently supports Python and JavaScript

Watch the screencast:  http://vimeo.com/19016562


Project and documentation lives here:
https://github.com/alfredodeza/chapa.vim
 
install details
Copy the chapa.vim file to your ftplugin directory but should work with Pathogen as well.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
chapa.tar.gz 1.1.2 2011-02-14 7.0 Alfredo Deza Fixes some debug echo's that were left behind.
chapa.tar.gz 1.1.0 2011-02-05 7.0 Alfredo Deza Adds Folding Capabilities (just Python for now)
Makes the repeat mappings optional.
Drops Ruby support (other plugins already take care of same overlapping functionality)
chapa.tar.gz 1.0.1 2011-01-30 7.0 Alfredo Deza Minor bug fixes that deal with object living at the end of the file. It also fixes weird comment toggling to match exactly what you are asking for and nothing else.
chapa.tar.gz 1.0.0 2011-01-18 7.0 Alfredo Deza Adds JavasScript support! same features except only applied to functions (no classes or methods)
chapa.tar.gz 0.0.9 2011-01-17 7.0 Alfredo Deza Minor update that fixes better matching of Ruby end blocks.
chapa.tar.gz 0.0.8 2011-01-16 7.0 Alfredo Deza Adds better support for Ruby and ending blocks.
chapa.tar.gz 0.0.7 2011-01-15 7.0 Alfredo Deza Fixes a problem with moving from/to methods and makes the Repeat calls available as part of the Plugin
chapa.tar.gz 0.0.6 2011-01-14 7.0 Alfredo Deza You can now toggle comments for the N class, method or function and repeat any movement command with <C-h> and <C-l>.
It also fixes some issues with defining better being "inside" an actual object.
chapa.tar.gz 0.0.5 2011-01-13 7.0 Alfredo Deza Adds commenting capabilities for next/previous N method, class, function and default mappings.
Also provides more accurate visual selection by avoiding whitespace at the end of blocks.
chapa.tar.gz 0.0.4 2011-01-11 7.0 Alfredo Deza Fixes a bug with visual selection and adds count for visual selections (eg. visual select 3rd next method)
chapa.tar.gz 0.0.3 2011-01-10 7.0 Alfredo Deza Adds count for movements (e.g. move to 3 previous classes)
Add <Plug> before each plugin call in your mappings. Breaks compatibility for earlier versions.
chapa.tar.gz 0.0.2 2011-01-10 7.0 Alfredo Deza Adds 8 public movement and selection calls to the plugin - but breaks compatibility with previous version
ip used for rating: 54.226.180.223

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
SourceForge.net Logo