commit f88e57a476f5b1317e05a91b2e3eb20dec1b1777 parent c29217a44af8642f2dcd7404381b53ae371fcd58 Author: Alex Balgavy <a.balgavy@gmail.com> Date: Thu, 5 Sep 2019 13:21:20 -0400 vim: a small scratchpad plugin Former-commit-id: 04542760c3436be1e273cf84fcb5dc5f6ff455d9 Diffstat:
A | vim/autoload/scratchpad.vim | | | 5 | +++++ |
A | vim/plugin/scratchpad.vim | | | 1 | + |
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/vim/autoload/scratchpad.vim b/vim/autoload/scratchpad.vim @@ -0,0 +1,5 @@ +function scratchpad#MarkScratch() + exe "setlocal textwidth=".(winwidth(0)-7) + setlocal buftype=nofile + setlocal filetype=scratch +endfunction diff --git a/vim/plugin/scratchpad.vim b/vim/plugin/scratchpad.vim @@ -0,0 +1 @@ +command Scratch call scratchpad#MarkScratch()