Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Doc changed: patch 686.

  • Loading branch information...
commit d8b2c837755f99679b22deb3110830bd1659ce1b 1 parent 9febbb6
@coot authored
Showing with 12 additions and 23 deletions.
  1. +3 −8 README.md
  2. +9 −15 doc/cmd_alias.txt
View
11 README.md
@@ -117,8 +117,7 @@ this just delets/sets up the \<CR\> map. When you want to type a function:
```viml
:fun! X()
```
-or use the expression register @= you need to switch aliases
-off. The plugin also defines \<C-M\> map to \<CR\> which doesn't trigger
+The plugin also defines \<C-M\> map to \<CR\> which doesn't trigger
aliasing mechanism. So you can type ':fun! X()\<C-M\>' on the command line.
```viml
:CmdAlias! {alias}
@@ -150,13 +149,9 @@ you can run:
Note: the first command has to end with / (to use |, this is a vim
requirement.)
-Note: using the expression register:
-Since \<C-R\> is remapped in command line, you can not use it when you enter
-the expression register (:help ^R=). There is a patch on the way which fixes
-this disabling maps in expression register. Before it get accepted the
-plugin defies a map:
+Note: using the expression register: you need Vim 7.3.686. There is also:
```viml
-cnoremap <C-M> <CR>
+ cnoremap <C-M> <CR>
```
It will not trigger aliases, any way it might be a good idea to have such
a map in case you want to avoid aliases.
View
24 doc/cmd_alias.txt
@@ -22,7 +22,7 @@ To define alias use the command:
where [alias] is the alias name, [command] is the command that should be
executed. You might pretend new default [range] or count to the command. The
[alias] is any vim pattern that will be used to match what you are entering in
-the ':' command line (the pattern will have pretended '\C^' and appended '\\>'
+the ':' command line (the pattern will have pretended '\C^' and appended '\>'
- the later one unless [match_end] is specified and equal 0). For commands
which do not run external programs you can also set [history]=1 (default is
0), then the command history will remember what you have typped rather than
@@ -77,7 +77,7 @@ or 'append' then the Append command will be used (as with vim many commands) >
You will find the handy BufClose command in BufClose plugin by Christian
Robinson.
-Tip: to find if an alias is not coliding type ':\<alias\>\<C-d\>'.
+Tip: to find if an alias is not coliding type ':<alias><C-d>'.
See ':help c^D'. >
:CmdAlias SP 1,/\\\\begin{document}/-1s
<
@@ -105,14 +105,13 @@ Other Commands and Maps: ~
>
:CmdAliasToggle
<
-toggles on/of the aliases. Since the plugin remaps \<CR\> in the command line
-this just delets/sets up the \<CR\> map. When you want to type a function:
+toggles on/of the aliases. Since the plugin remaps <CR> in the command line
+this just delets/sets up the <CR> map. When you want to type a function:
>
:fun! X()
<
-or use the expression register @= you need to switch aliases off. The plugin
-also defines \<C-M\> map to \<CR\> which doesn't trigger aliasing mechanism.
-So you can type ':fun! X()\<C-M\>' on the command line.
+The plugin also defines <C-M> map to <CR> which doesn't trigger aliasing
+mechanism. So you can type ':fun! X()<C-M>' on the command line.
*cmdalias-:CmdAlias!*
>
@@ -146,14 +145,9 @@ you can run:
Note: the first command has to end with / (to use |, this is a vim
requirement.)
-Note: using the expression register:
-Since \<C-R\> is remapped in command line, you can not use it when you enter
-the expression register (:help ^R=). There is a patch on the way which fixes
-this disabling maps in expression register. Before it get accepted the
-plugin defies a map: >
+Note: using the expression register: you need Vim 7.3.686. There is also: >
cnoremap <C-M> <CR>
-<
-It will not trigger aliases, any way it might be a good idea to have such
+< It will not trigger aliases, any way it might be a good idea to have such
a map in case you want to avoid aliases.
If you want to debug define a list: >
@@ -164,7 +158,7 @@ and for all calls an entry to this list will be appended.
record accessing to this variable)
-Ideas for useful aliases: >
+Some ideas for useful aliases: >
CmdAlias re reg\ "0-*+/ 1
CmdAlias rn reg\ 123456789 1
CmdAlias ra reg abcdefghijklmnopqrstuwxyz 1
Please sign in to comment.
Something went wrong with that request. Please try again.