fatih / vim-go

Go development plugin for Vim
https://www.patreon.com/bhcleek
Other
15.98k stars 1.45k forks source link

mingw: Modify GoDoc split window key binding for GitBash compatibility #3608

Open rwxguo opened 9 months ago

rwxguo commented 9 months ago

The following keybinding resolved leading escape as a prefix (e.g. arrow keys), But on GitBash, as there is no leading escape issue when press arrow keys, when press Esc on the :GoDoc scratch window, the window will not be closed.

nnoremap <buffer> <silent> <Esc>[ <Esc[

Thus, I made a GitBash platform checking to skip the key binding.