1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-28 08:13:17 +03:00

Handle Vim special cases

This commit is contained in:
Ezequiel Rosas 2017-08-15 23:07:11 -05:00
parent 66f36e2974
commit 16c5120ddf

View File

@ -102,6 +102,19 @@ extension NeoVimView {
return true
}
// For the following two conditions:
// See special cases in vim/os_win32.c from vim sources
// Also mentioned in MacVim's KeyBindings.plist
if .control == flags && chars == "6" {
self.agent.vimInput("\u{1e}")
return true
}
if .control == flags && chars == "2" {
// <C-2> should generate \0, escaping as above
self.agent.vimInput(self.wrapNamedKeys("Nul"))
return true
}
return false
}