py3 << eof
foo = '\s'
eof
Error detected while processing .../vimrc:
line 3:
<string>:1: SyntaxWarning: invalid escape sequence '\s'
Press ENTER or type command to continue
Python block should either be ignored or vim would need to be able to parse python or parsed with python, maybe?
VIM - Vi IMproved 9.1 Included patches: 1-429
OS: Arch Linux
Terminal: foot version: 1.17.2
TERM: foot
Shell: GNU bash, version 5.2.26(1)-release (x86_64-pc-linux-gnu)
Error detected while processing .../vimrc: line 3: <string>:1: SyntaxWarning: invalid escape sequence '\s' Press ENTER or type command to continue
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
The same happens with Python interpreter:
>>> foo = '\s'
<stdin>:1: SyntaxWarning: invalid escape sequence '\s'
So I don't think this is a bug.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
closing then.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
Closed #14914 as not planned.
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@zeertzjq your right. I don't know why I started getting the error then. But I fixed it using the raw strings in python. Thanks for the help!
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()