sponsor Vim development Vim logo Vim Book Ad

lh-brackets : Bracketing system + Tools for programming mappings

 script karma  Rating 9/5, Downloaded by 3035  Comments, bugs, improvements  Vim wiki

created by
Luc Hermitte
 
script type
utility
 
description
The latest version of this plugin is maintained at https://github.com/LucHermitte/lh-brackets


Here is an archive containing different functions and commands aimed at (ft)plugins
developpers.

You fill find :
- functions to define context dependent mappings : i.e. mappings that won't expand
  within comment or string context -> MapNoContext() & MapNoContext2()
- a function that insert a pair of tokens around a visual area -> MapAroundVisualLine()
- a function that expands mappings contained into strings -> BuildMapSeq()
- commands that eats the <spaces> you hit at the end of abbreviations

- a set of definitions to insert markers and jump to them (derived from Stephen
  Riehm bracketing system) ; the markers can be customized, erased or deleted,
  etc.

- my bracketing system : through a set of buffer-relative options, we can activate
  (and tune) the insertion of pairs of brackets when we hit the opening bracket. It
  works in insert, normal and visual modes. If markers are available and wanted,
  they will be inserted in insert-mode.
  It also proposes functions (from auctex.vim) that delete pairs of brackets,
  change them (to '{}', '()', or '[]'), toogle backslashes, etc.

You fill found a much more complete documentation and examples within the archive, and there:
https://github.com/LucHermitte/lh-brackets
 
install details
The easiest way to install this plugin, is to install lh-brackets thanks vim-addon-manager (as VAM hadles dependencies).

Check https://github.com/LucHermitte/lh-brackets otherwise.
 

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
lh-map-tools-0.6.1.vba 0.6.1 2008-02-21 6.0 Luc Hermitte A lot of changes and improvments have been made since the last release 6 years ago: folding friendly, doesn't mess with history and registers, utf-8 friendly, new mapping to replace a placeholder with its contents, options to select (or not) the current marker on a jump ; Surround() recognizes placeholders from other selections, support for angle brackets ; new context sensitive text inserters ; etc.
lh-map-tools.tar.gz 2002-11-08 2002-11-08 6.0 Luc Hermitte (*) Misc_maps: Some minor problems fixed.
(*) Markers: Names of options and functions changed ; Closing markers can be of any length ; Possibility to jump backward and forward from markers to markers + the associated commands.
(*) Mappings can be customized outside the plugins.
(*) Doc updated
lh-map-tools.tar.gz 2002-04-04 2002-04-04 6.0 Luc Hermitte Bugs fixed, plus other functions and a bracketing system.
ip used for rating: 142.132.191.50

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.
   
Vim at Github