[doc-patch] document <buffer> flags for :mapc and :abbreviate commands

11 views
Skip to first unread message

Christian Brabandt

unread,
Jun 7, 2011, 8:47:19 AM6/7/11
to vim...@vim.org
Hi Bram,

this small doc patch, documents the use of the <buffer> argument for the
various :mapclear and :abbreviate commands.

diff --git a/runtime/doc/map.txt b/runtime/doc/map.txt
--- a/runtime/doc/map.txt
+++ b/runtime/doc/map.txt
@@ -107,6 +107,8 @@
:cmapc[lear] |mapmode-c| *:cmapc* *:cmapclear*
Remove ALL mappings for the modes where the map
command applies. {not in Vi}
+ Use the <buffer> argument to remove buffer-local
+ mappings |:map-<buffer>|
Warning: This also removes the default mappings.

:map |mapmode-nvo|
@@ -934,11 +936,12 @@
avoid that a typed {lhs} is expanded, since
command-line abbreviations apply here.

-:ab[breviate] [<expr>] {lhs} {rhs}
+:ab[breviate] [<expr>] [<buffer>] {lhs} {rhs}
add abbreviation for {lhs} to {rhs}. If {lhs} already
existed it is replaced with the new {rhs}. {rhs} may
contain spaces.
- See |:map-<expr>| for the optional <expr> argument.
+ See |:map-<expr>| and |:map-<buffer>| for the optional
+ arguments.

*:una* *:unabbreviate*
:una[bbreviate] {lhs} Remove abbreviation for {lhs} from the list. If none
@@ -948,12 +951,12 @@
expansion insert a CTRL-V (type it twice).

*:norea* *:noreabbrev*
-:norea[bbrev] [<expr>] [lhs] [rhs]
+:norea[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
same as ":ab", but no remapping for this {rhs} {not
in Vi}

*:ca* *:cabbrev*
-:ca[bbrev] [<expr>] [lhs] [rhs]
+:ca[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
same as ":ab", but for Command-line mode only. {not
in Vi}

@@ -962,12 +965,12 @@
in Vi}

*:cnorea* *:cnoreabbrev*
-:cnorea[bbrev] [<expr>] [lhs] [rhs]
+:cnorea[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
same as ":ab", but for Command-line mode only and no
remapping for this {rhs} {not in Vi}

*:ia* *:iabbrev*
-:ia[bbrev] [<expr>] [lhs] [rhs]
+:ia[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
same as ":ab", but for Insert mode only. {not in Vi}

*:iuna* *:iunabbrev*
@@ -975,18 +978,18 @@
Vi}

*:inorea* *:inoreabbrev*
-:inorea[bbrev] [<expr>] [lhs] [rhs]
+:inorea[bbrev] [<expr>] [<buffer>] [lhs] [rhs]
same as ":ab", but for Insert mode only and no
remapping for this {rhs} {not in Vi}

*:abc* *:abclear*
-:abc[lear] Remove all abbreviations. {not in Vi}
+:abc[lear] [<buffer>] Remove all abbreviations. {not in Vi}

*:iabc* *:iabclear*
-:iabc[lear] Remove all abbreviations for Insert mode. {not in Vi}
+:iabc[lear] [<buffer>] Remove all abbreviations for Insert mode. {not in Vi}

*:cabc* *:cabclear*
-:cabc[lear] Remove all abbreviations for Command-line mode. {not
+:cabc[lear] [<buffer>] Remove all abbreviations for Command-line mode. {not
in Vi}

*using_CTRL-V*

regards,
Christian

Bram Moolenaar

unread,
Jun 8, 2011, 12:38:14 AM6/8/11
to Christian Brabandt, vim...@vim.org

Christian Brabandt wrote:

> this small doc patch, documents the use of the <buffer> argument for the
> various :mapclear and :abbreviate commands.

Thanks, I'll include it soon.

--
hundred-and-one symptoms of being an internet addict:
151. You find yourself engaged to someone you've never actually met,
except through e-mail.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Reply all
Reply to author
Forward
0 new messages