diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-22 16:22:47 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-22 16:22:47 +1200 |
commit | 0ed2588950308a3827d53baf1d8f7e902b7855d5 (patch) | |
tree | c2a7d268eef7215774ad59b42287ae5910fbf7f7 /vim | |
parent | Allow numbers in place of symbol leader maps (diff) | |
download | dotfiles-0ed2588950308a3827d53baf1d8f7e902b7855d5.tar.gz dotfiles-0ed2588950308a3827d53baf1d8f7e902b7855d5.zip |
Add sticky-star mapping, displaying regex mapping
Diffstat (limited to 'vim')
-rw-r--r-- | vim/vimrc | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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 |