How to make a per-buffer language changing command/function? #25082
Unanswered
Andrew15-5
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I've tried using
setlocal spelllang=<lang>, but to change the language itself I have to (? maybe not) use<c-^>(:h CTRL-^), which is not a global thing as far as I can tell. Moreover, it only works in insert mode, so I have to make a normal mode command, that will quickly enter insert mode, press the shortcut, and exit the insert mode. It works great with 1 buffer, but when I try to change language in multiple buffers, the spelling highlighting and the inserted language are not sync.I also added these lines:
Beta Was this translation helpful? Give feedback.
All reactions