abbr-expand-and-space is deprecated. Use abbr-expand-and-insert instead
If ABBR_SET_EXPANSION_CURSOR (default 0) is non-zero, the expansion's first instance of ABBR_EXPANSION_CURSOR_MARKER (default $ABBR_LINE_CURSOR_MARKER) will be replaced with the cursor.
If ABBR_SET_LINE_CURSOR (default 0) is non-zero, and the cursor was not placed during expansion, the line's first instance of ABBR_LINE_CURSOR_MARKER (default %) will be replaced with the cursor
Tips
Add the ABBR_EXPANSION_CURSOR_MARKER to end of an expansion to opt out of inserting a space
Build "template-y" abbreviations by including multiple ABBR_LINE_CURSOR_MARKER's in an expansion
% ABBR_SET_EXPANSION_CURSOR=1
% ABBR_SET_LINE_CURSOR=1
% abbr template="a%b % c%d"
% template[SPACE] # expands to `a[CURSOR]b % c%d`
% a[type xSPACE]b % c%d # cursor moves: `ax b [CURSOR] c %`
% ax b [type ySPACE] c%d # cursor moves: `ax b y c [CURSOR]`
% ax b y c [CURSOR]
If your expansions have %, consider changing ABBR_LINE_CURSOR_MARKER to %ABBR_CURSOR% or similar
Features
abbr-expand-and-space
is deprecated. Useabbr-expand-and-insert
insteadABBR_SET_EXPANSION_CURSOR
(default0
) is non-zero, the expansion's first instance ofABBR_EXPANSION_CURSOR_MARKER
(default$ABBR_LINE_CURSOR_MARKER
) will be replaced with the cursor.ABBR_SET_LINE_CURSOR
(default0
) is non-zero, and the cursor was not placed during expansion, the line's first instance ofABBR_LINE_CURSOR_MARKER
(default%
) will be replaced with the cursorTips
ABBR_EXPANSION_CURSOR_MARKER
to end of an expansion to opt out of inserting a space%
, consider changingABBR_LINE_CURSOR_MARKER
to%ABBR_CURSOR%
or similarAcknowledgments