diff --git a/autoload/go/doc.vim b/autoload/go/doc.vim index ca1943b1fe..af140961c2 100644 --- a/autoload/go/doc.vim +++ b/autoload/go/doc.vim @@ -208,7 +208,10 @@ function! s:GodocView(newposition, position, content, package) abort noremap :close " make sure any key that sends an escape as a prefix (e.g. the arrow keys) " don't cause the window to close. - nnoremap [ [ + " exception on GitBash: https://stackoverflow.com/a/20458579 + if !has('win32unix') + nnoremap [ [ + endif endfunction " returns the package and exported name. exported name might be empty.