system()
code:vim
:let out = system("echo hello")
:echo out
結果
code:結果
hello
call('system', 引数)のようにもできる
code:vim
echo out
結果
code:結果
hello
callを使う方法はvim-jpにも書いてあった!
https://gyazo.com/f9019b0c3028a732ee5edf12cfc7112d
コマンドへの標準入力をバッファの内容にしたい
ただたんに取得して、渡すしか無いのかな
2019/8/24 21:40
以下の関数でカレントバッファのテキストは取得できる
code:vim
function! s:get_cur_buf_lines() abort
return join(getline(1, '$'), "\n")
endfunction
asyncomplete-buffer.vimこの書き方してた