Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

key map expr needs more backslashes? #889

Open
ajrh1 opened this issue Apr 15, 2024 · 1 comment
Open

key map expr needs more backslashes? #889

ajrh1 opened this issue Apr 15, 2024 · 1 comment

Comments

@ajrh1
Copy link

ajrh1 commented Apr 15, 2024

vim: Debian VIM - Vi IMproved 9.1
vim-gitgutter: 67ef116

Seems strange I'm encountering this if nobody else is, but in the map expr lines such as nnoremap <silent> <expr> <Plug>(GitGutterNextHunk) [...] I needed to change the escape sequences such as \<CR> to \\\<CR>. Without adding extra backslashes I just get literal <CR> strings in the command buffer.

Patch attached in case HTML escaping also eats backslashes.

map.txt

@airblade
Copy link
Owner

That's weird. Those lines haven't changed for years and I don't have any trouble with Vim 9.1 on macOS.

Not sure how to proceed...perhaps leave this here and wait to see if anyone else is affected?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants