- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2020-04-20T11:36:02+09:00","default:ryuichi","ryuichi")
* スクラッチバッファを導入する [#rdab4858]
** スクラッチバッファとは? [#mdad8cc2]
- 作業用のバッファ。一時的なファイル(バッファ)上で編集し、終了時に保存しない
** 標準入力を読み込んでVimを起動する時にスクラッチバッファを導入する [#n90ba218]
command! ScratchBuffer setlocal buftype=nofile bufhidden=hide noswapfile
autocmd StdinReadPre * :ScratchBuffer
- 無名バッファに '''setlocal buftype=nofile bufhidden=hide noswapfile''' を指定する
** 参考 [#n01abe07]
- https://nanasi.jp/articles/howto/file/workingfile.html
- https://vi.stackexchange.com/questions/22314/saving-a-scratch-buffer