06/07/17 07:31:45
function! g:GetHere()
redir => str
silent function g:Here
redir END
let lines = split(str, '\n')[1:-2] " 前後のゴミ(関数宣言)を削除
let lines = map(lines, 'v:val[3:]') " 行番号を削除
return join(lines, "\n")
endfunction
function! g:Here()
ねんがんの ヒアドキュメント をてにいれたぞ
endfunction
let a = g:GetHere()
function! g:Here()
これは
ヒアドキュメントです
ウヒョヒョ
endfunction
let b = g:GetHere()