aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-22 16:22:47 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-22 16:22:47 +1200
commit0ed2588950308a3827d53baf1d8f7e902b7855d5 (patch)
treec2a7d268eef7215774ad59b42287ae5910fbf7f7 /vim
parent8db92b1752ccaa95ada91bfca9955603a0a1ea59 (diff)
downloaddotfiles-0ed2588950308a3827d53baf1d8f7e902b7855d5.tar.gz
dotfiles-0ed2588950308a3827d53baf1d8f7e902b7855d5.zip
Add sticky-star mapping, displaying regex mapping
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc9
1 files changed, 6 insertions, 3 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 817b6938..172af0ac 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -1611,10 +1611,13 @@ xmap <Leader>r <Plug>(ReplaceOperator)
nnoremap <Leader>!
\ :<Up><Home><S-Right>!<CR>
nmap <Leader>1 <Leader>!
-nmap <Leader>* <Plug>(RegexEscape)
+nmap <Leader>& <Plug>(RegexEscape)
+nmap <Leader>7 <Leader>&
+xmap <Leader>& <Plug>(RegexEscape)
+xmap <Leader>7 <Leader>&
+"" Leader,*/8 is sticky-star: search, highlight, but don't move
+nnoremap <silent> <Leader>* *N
nmap <Leader>8 <Leader>*
-xmap <Leader>* <Plug>(RegexEscape)
-xmap <Leader>8 <Leader>*
" 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