I am trying to re-map the <esc> so in addition to clearing the selection it also resets the local filter.
<esc>
I have tried a few things, however mappings like nnoremap <esc> zM | :noh<cr> or map <esc> zM | :noh<cr> don't seem to work for Escape.
nnoremap <esc> zM | :noh<cr>
map <esc> zM | :noh<cr>
Test comment, please disregard.
Just trying to recall what markup breaks the parser.... Linking somewhere, maybe even twice and adding an image:
![felis catus][1]
$ echo $PATH
? [1]: https://upload.wikimedia.org/wikipedia/commons/thumb/b/b6/Felis_catus-cat_on_snow.jpg/640px-Felis_catus-cat_on_snow.jpg ?
You're doing something weird with those spaces and bar in a mapping. It should be
nnoremap <esc> zM:noh<cr>
or according to your description just this
nnoremap <esc> zr<esc>
Aha, so the syntax is a bit different to vim where one would normally use | or <bar>.
|
<bar>
The 2nd snippet you have provided is exactly what I was looking for. Thanks heaps!
so the syntax is a bit different to vim
Not really. Bar separates command-line commands, when you in normal mode you just enter command-line mode with :, enter command and run it.