From 20aac49e598b06ede9ffa8dc895f18063f0ed56b Mon Sep 17 00:00:00 2001 From: Maxwell Pray Date: Fri, 28 Jul 2023 12:33:29 -0700 Subject: [PATCH] Always display code view in GitHub. --- plugin/to-github.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/to-github.vim b/plugin/to-github.vim index 7d5b6f1..31e8bf0 100644 --- a/plugin/to-github.vim +++ b/plugin/to-github.vim @@ -88,9 +88,9 @@ function! ToGithub(count, line1, line2, ...) " Finally set the line numbers if necessary. if a:count == -1 - let line = '#L' . line('.') + let line = '?plain=1#L' . line('.') else - let line = '#L' . a:line1 . '-L' . a:line2 + let line = '?plain=1#L' . a:line1 . '-L' . a:line2 endif if get(g:, 'to_github_clipboard', 0)