-
Notifications
You must be signed in to change notification settings - Fork 269
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
How to enter a new keymap #110
Comments
How about this one:
|
doesn't work |
Ok that was just a shot in the dark. I'm not too sure what IAST is or does, but if you can find the commands you need then binding those commands shouldn't be too hard. You will probably need two, one to turn it on, the other to turn it off (whatever it is in this case). Alternatively, given your two commands, there is probably a way to create a toggle by defining a function. Feel free to elaborate what you have already and what you are looking for since I don't know much about this already. |
IAST is just a way to tell the keyboard to start typing character in a certain manner. For example when asked it will put a - above i when you type -i. It is no different from other keymapping that you see in /opt/homebrew/Cellar/neovim/0.9.4/share/nvim/runtime/keymap. There is an iast.vim file that looks like scriptencoding utf-8 |
How about this one:
Or, using the local definitions, add the following to
Sorry for the long delay. |
In the previous version of configuration (pre-lua), the keymapping was in mappings.vim. Neovim has a different construct and need some guidance.
I need to change my keymap to IAST to enter Sanskrit diacritical marks. For this I had established this map in mappings.vim. Essentially I need a toggle. How would I unset this keymap once established in a session?
map <C-%> :set keymap=iast<CR>
what will be the equivalent entry in keymaps.lua. I tried several format of this without success
keymap("n", "C-%", ":set keymap=iast<CR>",term_opts)
The text was updated successfully, but these errors were encountered: