diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-23 17:22:48 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-23 17:22:48 +1200 |
commit | e95e4c2acc1c9dd131dde12e733c86cdc090ba6c (patch) | |
tree | d79bdf998e04bbf6faf6015f45041ffa2cd6d33a /vim/autoload/scratch.vim | |
parent | Merge branch 'release/v6.40.0' (diff) | |
parent | Bump VERSION (diff) | |
download | dotfiles-e95e4c2acc1c9dd131dde12e733c86cdc090ba6c.tar.gz dotfiles-e95e4c2acc1c9dd131dde12e733c86cdc090ba6c.zip |
Merge branch 'release/v6.41.0'v6.41.0
* release/v6.41.0:
Add basic homebrew scratch buffer plugin
Have a little fun with compatible vi
Diffstat (limited to 'vim/autoload/scratch.vim')
-rw-r--r-- | vim/autoload/scratch.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vim/autoload/scratch.vim b/vim/autoload/scratch.vim new file mode 100644 index 00000000..bf6566dc --- /dev/null +++ b/vim/autoload/scratch.vim @@ -0,0 +1,11 @@ +function! scratch#(mods, count, ...) abort + let command = [] + call add(command, a:mods) + if a:count + call add(command, a:count) + endif + call add(command, 'new') + call extend(command, a:000) + execute join(command) + set buftype=nofile +endfunction |