From a4b423a2ebabe64875dbda2b80bdbaa787888bf0 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Thu, 22 Feb 2018 10:17:41 +0800 Subject: [PATCH] Add Faq for #1427 --- .github/ISSUE_TEMPLATE.md | 15 +++++---------- autoload/SpaceVim/issue.vim | 4 +++- 2 files changed, 8 insertions(+), 11 deletions(-) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 0343d156b..534c957e1 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,20 +1,15 @@ - -## Expected behavior, english is recommended + - -## Environment Information -- OS: -- vim version: -- neovim version: +## Expected behavior, english is required ## The reproduce ways from Vim starting (Required!) +## Debug info -## Output of the ':SPDebugInfo!' - -please post log below, if you want me to reproduce your issue quickly, including your custom config here will be better. +Please press SPC h I, debug info will be put into clipboard, then paste all content below. ## Screenshots If you have any screenshots for this issue, please upload here. BTW you can use https://asciinema.org/ for recording video in terminal. + diff --git a/autoload/SpaceVim/issue.vim b/autoload/SpaceVim/issue.vim index 1963de71a..6c5da482b 100644 --- a/autoload/SpaceVim/issue.vim +++ b/autoload/SpaceVim/issue.vim @@ -15,7 +15,9 @@ endfunction function! s:open() abort exe 'tabnew ' . tempname() . '/issue_report.md' let b:spacevim_issue_template = 1 - call setline(1, s:template()) + let template = s:template() + call setline(1, template) + let @+ = join(template, "\n") w endfunction