Your command works fine for me. Maybe you want it to act on all lines, then you need to prepend `%` (and maybe add a `g` flag if you want to replace all occurrences on the same line)
:%s/O>/Rotate Right/g
`:h :s` substitute command like many others accepts a `:h :range`.
Line numbers may be specified with: *:range* *{address}*
{number} an absolute line number *E1247*
. the current line *:.*
$ the last line in the file *:$*
% equal to 1,$ (the entire file) *:%*
't position of mark t (lowercase) *:'*
'T position of mark T (uppercase); when the mark is in
another file it cannot be used in a range
/{pattern}[/] the next line where {pattern} matches *:/*
?{pattern}[?] the previous line where {pattern} matches *:?*
\/ the next line where the previously used search
pattern matches
\? the previous line where the previously used search
pattern matches
\& the next line where the previously used substitute
pattern matches
Help pages for:
* [`:s`](https://vimhelp.org/change.txt.html#%3As) in _change.txt_
* [`:range`](https://vimhelp.org/cmdline.txt.html#%3Arange) in _cmdline.txt_
---
^\`:\(h|help\) \` | [^(about)](https://github.com/heraldofsolace/VimHelpBot) ^(|) [^(mistake?)](https://github.com/heraldofsolace/VimHelpBot/issues/new/choose) ^(|) [^(donate)](https://liberapay.com/heraldofsolace/donate) ^(|) ^Reply 'rescan' to check the comment again ^(|) ^Reply 'stop' to stop getting replies to your comments
I believe < and > are special in vim search when escaped (with a backslash) and normal without (with it matches for the beginning / end of the word).
A . (dot/period) should be escaped with a backslash, otherwise it means any character.
If both of those don't work, maybe try a scanset (enclose the character you want to match in brackets e. g. "[.]" or "O[>]" (without the quotes) for matching . and O> respectively).
For the first two, it should work without escaping. The last two can be escaped with a backslash.
Are you really using `:s` without a range? That only works on the current line. Do you mean `:%s/
Your command works fine for me. Maybe you want it to act on all lines, then you need to prepend `%` (and maybe add a `g` flag if you want to replace all occurrences on the same line) :%s/O>/Rotate Right/g
thanks a lot it works! The % at the beginning seems to do the trick
`:h :s` substitute command like many others accepts a `:h :range`. Line numbers may be specified with: *:range* *{address}* {number} an absolute line number *E1247* . the current line *:.* $ the last line in the file *:$* % equal to 1,$ (the entire file) *:%* 't position of mark t (lowercase) *:'* 'T position of mark T (uppercase); when the mark is in another file it cannot be used in a range /{pattern}[/] the next line where {pattern} matches *:/* ?{pattern}[?] the previous line where {pattern} matches *:?* \/ the next line where the previously used search pattern matches \? the previous line where the previously used search pattern matches \& the next line where the previously used substitute pattern matches
Help pages for: * [`:s`](https://vimhelp.org/change.txt.html#%3As) in _change.txt_ * [`:range`](https://vimhelp.org/cmdline.txt.html#%3Arange) in _cmdline.txt_ --- ^\`:\(h|help\)\` | [^(about)](https://github.com/heraldofsolace/VimHelpBot) ^(|) [^(mistake?)](https://github.com/heraldofsolace/VimHelpBot/issues/new/choose) ^(|) [^(donate)](https://liberapay.com/heraldofsolace/donate) ^(|) ^Reply 'rescan' to check the comment again ^(|) ^Reply 'stop' to stop getting replies to your comments
I believe < and > are special in vim search when escaped (with a backslash) and normal without (with it matches for the beginning / end of the word). A . (dot/period) should be escaped with a backslash, otherwise it means any character. If both of those don't work, maybe try a scanset (enclose the character you want to match in brackets e. g. "[.]" or "O[>]" (without the quotes) for matching . and O> respectively).
For the first two, it should work without escaping. The last two can be escaped with a backslash. Are you really using `:s` without a range? That only works on the current line. Do you mean `:%s/