aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-22 16:22:59 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-22 16:22:59 +1200
commit39add793e1ed4dc7b4bf342e28510c5d810a7e6f (patch)
tree675e0885c95be3b4716845c0728f2c64fbe7c53a
parent0ed2588950308a3827d53baf1d8f7e902b7855d5 (diff)
downloaddotfiles-39add793e1ed4dc7b4bf342e28510c5d810a7e6f.tar.gz
dotfiles-39add793e1ed4dc7b4bf342e28510c5d810a7e6f.zip
Add :Fortune mapping
-rw-r--r--vim/vimrc5
1 files changed, 5 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 172af0ac..8a4b685b 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -1611,6 +1611,11 @@ xmap <Leader>r <Plug>(ReplaceOperator)
nnoremap <Leader>!
\ :<Up><Home><S-Right>!<CR>
nmap <Leader>1 <Leader>!
+"" Leader,$/4 gives me my fortune
+nnoremap <Leader>$
+ \ :<C-U>Fortune<CR>
+nmap <Leader>4 <Leader>$
+"" Leader,&/7 escapes regex metacharacters
nmap <Leader>& <Plug>(RegexEscape)
nmap <Leader>7 <Leader>&
xmap <Leader>& <Plug>(RegexEscape)