From d24a25f7959197361f0ccfd08d5e8308abb6859c Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sun, 23 Jun 2019 17:14:57 +1200 Subject: Add basic homebrew scratch buffer plugin Thanks to crose in Freenode #vim for a hint about `:help `. --- vim/vimrc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vim/vimrc') diff --git a/vim/vimrc b/vim/vimrc index d8c40e38..b9b491e9 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -1625,6 +1625,12 @@ xmap 7 & "" Leader,*/8 is sticky-star: search, highlight, but don't move nnoremap * *N nmap 8 * +"" Leader,` opens a scratch buffer, horizontally split +nnoremap ` + \ :Scratch +"" Leader,~ opens a scratch buffer, vertically split +nnoremap ~ + \ :vertical Scratch " And last, but definitely not least, I'm required by Vim fanatic law to " include a mapping that reloads my whole configuration. This uses the -- cgit v1.2.3