From 697cc59441eb5deed1e130a5be62f896185429d2 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Tue, 17 May 2022 20:58:45 +0200 Subject: ftplugin/go.vim#s:GoDoc: Start at the top of the documentation Previously, the cursor would be at the bottom or the loaded documentation. It's more practical to start at the beginning. Also remove the empty first line. --- ftplugin/go.vim | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ftplugin') diff --git a/ftplugin/go.vim b/ftplugin/go.vim index 0e0ca00..46c9e9b 100644 --- a/ftplugin/go.vim +++ b/ftplugin/go.vim @@ -61,6 +61,8 @@ function! s:GoDoc(search_term) new execute 'read !go doc -all ' . shellescape(search_term) + 1delete + 1 set readonly nomodified setfiletype godoc endfunction -- cgit v1.2.3