dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 2b920ec77364ac0b55806965d3d91ab910ef95c1
parent eb287eb4a2a799bca5be7cc43271c5fa0d54e119
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Wed,  5 Feb 2020 21:57:44 +0100

vim: scratchpad more commands

Former-commit-id: 4ba8567a1b8e9fe1ee240c8c3738ed0f163cd218
Diffstat:
Mvim/autoload/scratchpad.vim | 6+++++-
Mvim/plugin/scratchpad.vim | 3++-
2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/vim/autoload/scratchpad.vim b/vim/autoload/scratchpad.vim @@ -1,4 +1,8 @@ -function scratchpad#MarkScratch() +function! scratchpad#Create() + new + call scratchpad#MarkScratch() +endfunction +function! scratchpad#MarkScratch() exe "setlocal textwidth=".(winwidth(0)-7) setlocal bufhidden=wipe buftype=nofile nobuflisted noswapfile endfunction diff --git a/vim/plugin/scratchpad.vim b/vim/plugin/scratchpad.vim @@ -1 +1,2 @@ -command Scratch call scratchpad#MarkScratch() +command! Scratch call scratchpad#Create() +command! ScratchMark call scratchpad#MarkScratch()