From 001209a2fe25612f2fe076d2db3d3073f0a6e008 Mon Sep 17 00:00:00 2001 From: David Bürgin <676c7473@gmail.com> Date: Fri, 1 May 2015 14:27:37 +0200 Subject: 'cpoptions': Remove "*" flag #2554 The "*" flag in 'cpoptions' makes the command :* execute the contents of a register. Removed because 1. the same functionality exists as :@ 2. it hides :* as a useful command-line shortcut for :'<,'> 3. unlike :@ it cannot be used with the * register Helped-by: Michael Reed --- runtime/doc/cmdline.txt | 5 +---- runtime/doc/index.txt | 1 - runtime/doc/options.txt | 3 --- runtime/doc/repeat.txt | 4 +--- 4 files changed, 2 insertions(+), 11 deletions(-) (limited to 'runtime') diff --git a/runtime/doc/cmdline.txt b/runtime/doc/cmdline.txt index 88d0c31f96..932d230a59 100644 --- a/runtime/doc/cmdline.txt +++ b/runtime/doc/cmdline.txt @@ -703,10 +703,7 @@ Visual Mode and Range *v_:* history for repeating a command on different Visually selected lines. When Visual mode was already ended, a short way to use the - Visual area for a range is `:*`. This requires that "*" does - not appear in 'cpo', see |cpo-star|. Otherwise you will have - to type `:'<,'>` - + Visual area for a range is `:*`. ============================================================================== 5. Ex command-line flags *ex-flags* diff --git a/runtime/doc/index.txt b/runtime/doc/index.txt index 6c12bfff15..2338906db2 100644 --- a/runtime/doc/index.txt +++ b/runtime/doc/index.txt @@ -1064,7 +1064,6 @@ tag command action ~ |:!!| :!! repeat last ":!" command |:#| :# same as ":number" |:&| :& repeat last ":substitute" -|:star| :* execute contents of a register |:<| :< shift lines one 'shiftwidth' left |:=| := print the cursor line number |:>| :> shift lines one 'shiftwidth' right diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index e9cb8350cf..69576c3572 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -1936,9 +1936,6 @@ A jump table for the options with a short description can be found at |Q_op|. + When included, a ":write file" command will reset the 'modified' flag of the buffer, even though the buffer itself may still be different from its file. - *cpo-star* - * Use ":*" in the same way as ":@". When not included, - ":*" is an alias for ":'<,'>", select the Visual area. *cpo-<* < Disable the recognition of special key codes in |<>| form in mappings, abbreviations, and the "to" part of diff --git a/runtime/doc/repeat.txt b/runtime/doc/repeat.txt index 847830af9b..0412e9fb10 100644 --- a/runtime/doc/repeat.txt +++ b/runtime/doc/repeat.txt @@ -128,14 +128,12 @@ q Stops recording. *@@* *E748* @@ Repeat the previous @{0-9a-z":*} [count] times. -:[addr]*{0-9a-z".=+} *:@* *:star* + *:@* :[addr]@{0-9a-z".=*+} Execute the contents of register {0-9a-z".=*+} as an Ex command. First set cursor at line [addr] (default is current line). When the last line in the register does not have a it will be added automatically when the 'e' flag is present in 'cpoptions'. - Note that the ":*" command is only recognized when the - '*' flag is present in 'cpoptions'. For ":@=" the last used expression is used. The result of evaluating the expression is executed as an Ex command. -- cgit