Mercurial > vim
comparison runtime/doc/change.txt @ 24103:788e10cec9bd
Update runtime files.
Commit: https://github.com/vim/vim/commit/c8cdf0f80b3cfd88a4490d80572062c1fd1a96ca
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Mar 13 13:28:13 2021 +0100
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 13 Mar 2021 13:30:04 +0100 |
parents | 34b4eb3a8458 |
children | 1ce39e257f1b |
comparison
equal
deleted
inserted
replaced
24102:f897c1862d9e | 24103:788e10cec9bd |
---|---|
1 *change.txt* For Vim version 8.2. Last change: 2021 Jan 21 | 1 *change.txt* For Vim version 8.2. Last change: 2021 Mar 01 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
647 Note that after `:substitute` the '&' flag can't be | 647 Note that after `:substitute` the '&' flag can't be |
648 used, it's recognized as a pattern separator. | 648 used, it's recognized as a pattern separator. |
649 The space between `:substitute` and the 'c', 'g', | 649 The space between `:substitute` and the 'c', 'g', |
650 'i', 'I' and 'r' flags isn't required, but in scripts | 650 'i', 'I' and 'r' flags isn't required, but in scripts |
651 it's a good idea to keep it to avoid confusion. | 651 it's a good idea to keep it to avoid confusion. |
652 Also see the two and three letter commands to repeat | |
653 :substitute below |:substitute-repeat|. | |
652 | 654 |
653 :[range]~[&][flags] [count] *:~* | 655 :[range]~[&][flags] [count] *:~* |
654 Repeat last substitute with same substitute string | 656 Repeat last substitute with same substitute string |
655 but with last used search pattern. This is like | 657 but with last used search pattern. This is like |
656 `:&r`. See |:s_flags| for [flags]. | 658 `:&r`. See |:s_flags| for [flags]. |
875 | 877 |
876 *:sc* *:sce* *:scg* *:sci* *:scI* *:scl* *:scp* *:sg* *:sgc* | 878 *:sc* *:sce* *:scg* *:sci* *:scI* *:scl* *:scp* *:sg* *:sgc* |
877 *:sge* *:sgi* *:sgI* *:sgl* *:sgn* *:sgp* *:sgr* *:sI* *:si* | 879 *:sge* *:sgi* *:sgI* *:sgl* *:sgn* *:sgp* *:sgr* *:sI* *:si* |
878 *:sic* *:sIc* *:sie* *:sIe* *:sIg* *:sIl* *:sin* *:sIn* *:sIp* | 880 *:sic* *:sIc* *:sie* *:sIe* *:sIg* *:sIl* *:sin* *:sIn* *:sIp* |
879 *:sip* *:sIr* *:sir* *:sr* *:src* *:srg* *:sri* *:srI* *:srl* | 881 *:sip* *:sIr* *:sir* *:sr* *:src* *:srg* *:sri* *:srI* *:srl* |
880 *:srn* *:srp* | 882 *:srn* *:srp* *:substitute-repeat* |
881 2-letter and 3-letter :substitute commands ~ | 883 2-letter and 3-letter :substitute commands ~ |
884 | |
885 These commands repeat the previous `:substitute` command with the given flags. | |
886 The first letter is always "s", followed by one or two of the possible flag | |
887 characters. For example `:sce` works like `:s///ce`. The table lists the | |
888 possible combinations, not all flags are possible, because the command is | |
889 short for another command. | |
882 | 890 |
883 List of :substitute commands | 891 List of :substitute commands |
884 | c e g i I n p l r | 892 | c e g i I n p l r |
885 | c :sc :sce :scg :sci :scI :scn :scp :scl --- | 893 | c :sc :sce :scg :sci :scI :scn :scp :scl |
886 | e | 894 | e |
887 | g :sgc :sge :sg :sgi :sgI :sgn :sgp :sgl :sgr | 895 | g :sgc :sge :sg :sgi :sgI :sgn :sgp :sgl :sgr |
888 | i :sic :sie --- :si :siI :sin :sip --- :sir | 896 | i :sic :sie :si :siI :sin :sip :sir |
889 | I :sIc :sIe :sIg :sIi :sI :sIn :sIp :sIl :sIr | 897 | I :sIc :sIe :sIg :sIi :sI :sIn :sIp :sIl :sIr |
890 | n | 898 | n |
891 | p | 899 | p |
892 | l | 900 | l |
893 | r :src --- :srg :sri :srI :srn :srp :srl :sr | 901 | r :src :srg :sri :srI :srn :srp :srl :sr |
894 | 902 |
895 Exceptions: | 903 Exceptions: |
896 :scr is `:scriptnames` | 904 :scr is `:scriptnames` |
897 :se is `:set` | 905 :se is `:set` |
898 :sig is `:sign` | 906 :sig is `:sign` |