Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion autoload/go/doc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,10 @@ function! s:GodocView(newposition, position, content, package) abort
noremap <buffer> <silent> <Esc> :<C-U>close<CR>
" make sure any key that sends an escape as a prefix (e.g. the arrow keys)
" don't cause the window to close.
nnoremap <buffer> <silent> <Esc>[ <Esc>[
" exception on GitBash: https://stackoverflow.com/a/20458579
if !has('win32unix')
nnoremap <buffer> <silent> <Esc>[ <Esc>[
endif
endfunction

" returns the package and exported name. exported name might be empty.
Expand Down