" AlignMaps: Alignment maps based upon " Maintainer: Dr. Charles E. Campbell, Jr. " Date: Mar 06, 2008 " Version: 39 " " NOTE: the code herein needs vim 6.0 or later " needs v6 or later " needs v5 or later " Copyright: Copyright (C) 1999-2007 Charles E. Campbell, Jr. {{{1 " Permission is hereby granted to use and distribute this code, " with or without modifications, provided that this copyright " notice is copied with it. Like anything else that's free, " AlignMaps.vim is provided *as is* and comes with no warranty " of any kind, either expressed or implied. By using this " plugin, you agree that in no event will the copyright " holder be liable for any damages resulting from the use " of this software. " " 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 . " " Romans 1:20 For the invisible things of Him since the creation of the {{{1 " world are clearly seen, being perceived through the things that are " made, even His everlasting power and divinity; that they may be " without excuse. " --------------------------------------------------------------------- " Load Once: {{{1 if exists("g:loaded_alignmaps") || &cp finish endif let g:loaded_alignmaps = "v39" let s:keepcpo = &cpo set cpo&vim " --------------------------------------------------------------------- " 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