diff options
author | Christian Clason <c.clason@uni-graz.at> | 2022-10-17 08:19:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-17 08:19:48 +0200 |
commit | 9701c9dc9f157c4d09d1783aab9913d05b0d73b1 (patch) | |
tree | dd9b7d788960d5a481e14fb720235f456e691636 /runtime/doc/syntax.txt | |
parent | d44f088834081ee404db4459fdcfba82d14ef157 (diff) | |
download | rneovim-9701c9dc9f157c4d09d1783aab9913d05b0d73b1.tar.gz rneovim-9701c9dc9f157c4d09d1783aab9913d05b0d73b1.tar.bz2 rneovim-9701c9dc9f157c4d09d1783aab9913d05b0d73b1.zip |
vim-patch:3c053a1a5ad2 (#20679)
Update runtime files
https://github.com/vim/vim/commit/3c053a1a5ad2a3c924929e11f2b9af20a8b901e2
Diffstat (limited to 'runtime/doc/syntax.txt')
-rw-r--r-- | runtime/doc/syntax.txt | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index f9ca919ddb..48301f3083 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -2986,16 +2986,25 @@ satisfied with it for my own projects. SED *sed.vim* *ft-sed-syntax* To make tabs stand out from regular blanks (accomplished by using Todo -highlighting on the tabs), define "highlight_sedtabs" by putting > - - :let highlight_sedtabs = 1 +highlighting on the tabs), define "g:sed_highlight_tabs" by putting > + :let g:sed_highlight_tabs = 1 +< in the vimrc file. (This special highlighting only applies for tabs inside search patterns, replacement texts, addresses or text included by an Append/Change/Insert command.) If you enable this option, it is also a good idea to set the tab width to one character; by doing that, you can easily count the number of tabs in a string. +GNU sed allows comments after text on the same line. BSD sed only allows +comments where "#" is the first character of the line. To enforce BSD-style +comments, i.e. mark end-of-line comments as errors, use: > + + :let g:sed_dialect = "bsd" +< +Note that there are other differences between GNU sed and BSD sed which are +not (yet) affected by this setting. + Bugs: The transform command (y) is treated exactly like the substitute |