" AlignMaps: Alignment maps based upon " Maintainer: Dr. Charles E. Campbell, Jr. " Last Change: Sep 02, 2004 " Version: 30 " License: GPL (Gnu Public License) " " NOTE: the code herein needs vim 6.0 or later and needs v6 or later " " Usage: {{{1 " Use 'a to mark beginning of to-be-aligned region, Alternative: use v " move cursor to end of region, and execute map. (visual mode) to mark " The maps also set up marks 'y and 'z, and retain region, execute same map. " 'a at the beginning of region. Uses 'a, 'y, and 'z. " " Although the comments indicate the maps use a leading backslash, " actually they use (:he mapleader), so the user can " specify that the maps start how he or she prefers. " " Note: these maps all use . " --------------------------------------------------------------------- " Prevent duplicate loading: {{{1 if exists("g:loaded_alignmaps") || &cp finish endif let g:loaded_alignmaps= "v30" " --------------------------------------------------------------------- " WS: wrapper start map (internal) {{{1 " Produces a blank line above and below, marks with 'y and 'z if !hasmapto('WrapperStart') nmap \WS AlignMapsWrapperStart endif nmap