diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-23 17:14:57 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-23 17:20:54 +1200 |
commit | d24a25f7959197361f0ccfd08d5e8308abb6859c (patch) | |
tree | d65cbd5d6526905168b46ab47458a54a456d4c09 /vim/vimrc | |
parent | Have a little fun with compatible vi (diff) | |
download | dotfiles-d24a25f7959197361f0ccfd08d5e8308abb6859c.tar.gz dotfiles-d24a25f7959197361f0ccfd08d5e8308abb6859c.zip |
Add basic homebrew scratch buffer plugin
Thanks to crose in Freenode #vim for a hint about `:help <mods>`.
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1625,6 +1625,12 @@ xmap <Leader>7 <Leader>& "" Leader,*/8 is sticky-star: search, highlight, but don't move nnoremap <silent> <Leader>* *N nmap <Leader>8 <Leader>* +"" Leader,` opens a scratch buffer, horizontally split +nnoremap <silent> <Leader>` + \ :<C-U>Scratch<CR> +"" Leader,~ opens a scratch buffer, vertically split +nnoremap <silent> <Leader>~ + \ :<C-U>vertical Scratch<CR> " 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 |