diff options
| author | jdhao <jdhao@hotmail.com> | 2021-08-18 23:21:51 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-08-18 23:21:51 +0800 |
| commit | 30774cac5bc02ab8638ac7667e5eee8e0f41a9a6 (patch) | |
| tree | 9b9e9002e16e7cbb5c2d0dbfe7b8b5110c82519d /core | |
| parent | 72bf99a15f0df9bb36e68819ed81a5c3d204d202 (diff) | |
Use nvim-hlslens instead of vim-anzu
Diffstat (limited to 'core')
| -rw-r--r-- | core/options.vim | 5 | ||||
| -rw-r--r-- | core/plugins.vim | 23 |
2 files changed, 13 insertions, 15 deletions
diff --git a/core/options.vim b/core/options.vim index b097a6c..07bb6a0 100644 --- a/core/options.vim +++ b/core/options.vim @@ -111,6 +111,11 @@ set undofile " Do not show "match xx of xx" and other messages during auto-completion set shortmess+=c +" Do not show search match count on bottom right (seriously, I would strain my +" neck looking at it). Using plugins like vim-anzu or nvim-hlslens is a better +" choice, IMHO. +set shortmess+=S + " Completion behaviour " set completeopt+=noinsert " Auto select the first completion entry set completeopt+=menuone " Show menu even if there is only one item diff --git a/core/plugins.vim b/core/plugins.vim index f4d2fa3..18e4147 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -63,21 +63,14 @@ onoremap <silent> F :call sneak#wrap(v:operator, 2, 1, 1, 1)<CR> " or previous match let g:sneak#s_next = 1 -"""""""""""""""""""""""""""""vim-anzu settings""""""""""""""""""""""" -nmap n <Plug>(anzu-n-with-echo)zzzv -nmap N <Plug>(anzu-N-with-echo)zzzv - -" Maximum number of words to search -let g:anzu_search_limit = 500000 - -" Message to show for search pattern -let g:anzu_status_format = '/%p [%i/%l]' - -"""""""""""""""""""""""""""""vim-asterisk settings""""""""""""""""""""" -nmap * <Plug>(asterisk-z*) -nmap # <Plug>(asterisk-z#) -xmap * <Plug>(asterisk-z*) -xmap # <Plug>(asterisk-z#) +""""""""""""""""""""""""""""" settings for nvim-hlslens""""""""""""""" +noremap <silent> n <Cmd>execute('normal! ' . v:count1 . 'nzzzv')<CR> + \<Cmd>lua require('hlslens').start()<CR> +noremap <silent> N <Cmd>execute('normal! ' . v:count1 . 'Nzzzv')<CR> + \<Cmd>lua require('hlslens').start()<CR> + +map * <Plug>(asterisk-z*)<Cmd>lua require('hlslens').start()<CR> +map # <Plug>(asterisk-z#)<Cmd>lua require('hlslens').start()<CR> """""""""""""""""""""""""""""LeaderF settings""""""""""""""""""""" " Do not use cache file |
