Timeline for Why does `<Bar>` behave like `|` in the `:command` command in Vim?
Current License: CC BY-SA 4.0
5 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 20, 2020 at 4:09 | history | bounty ended | Lone Learner | ||
Aug 20, 2020 at 4:09 | vote | accept | Lone Learner | ||
Aug 17, 2020 at 0:13 | comment | added | Rich | Either way, this is excellent detective work. +1 | |
Aug 17, 2020 at 0:02 | comment | added | filbranden |
There's obviously some speculation in my answer, but I think it's probably close enough to the original intent... I took a look at Vim 5.3 source code (couldn't really find 5.2 anywhere, even in official repos) and I found two problems with my argument: First, it seems to use \< in a :command replacement to escape a < instead of <lt> , even though :map uses <lt> . Second, it doesn't really support <SID> at all, that was introduced later. So I'm a bit puzzled as to why it would originally call replace_termcodes() , since the <SID> explanation doesn't work there...
|
|
Aug 16, 2020 at 23:59 | history | answered | filbranden | CC BY-SA 4.0 |