Skip to content
Permalink
Browse files

Don't jump to the next occurrence of the highlighted word on search

  • Loading branch information
mikekaminsky committed Feb 8, 2020
1 parent 75a777a commit f262e1484789ae198fdfdb0f418e2fe05e7bc492
Showing with 8 additions and 1 deletion.
  1. +8 −1 .vimrc
9 .vimrc
@@ -130,6 +130,11 @@ nnoremap <silent> <leader>/ :nohlsearch<CR>
noremap <silent> n /<CR>
noremap <silent> N ?<CR>

" Don't jump to the next (previous) occurrence of the highlighted word on
" search
nnoremap <silent> * :let @/='\<<C-R>=expand("<cword>")<CR>\>'<CR>:set hls<CR>
nnoremap <silent> # :let @/='\<<C-R>=expand("<cword>")<CR>\>'<CR>:set hls<CR>

"###################################
"Navigation
"###################################
@@ -267,7 +272,7 @@ set smarttab
" Allow for pasting multiple lines
xnoremap p pgvy

"Copy and paste to system clipboard with space y and space d
"Copy and paste to system clipboard with space y and space p
vnoremap <Leader>y "+y
vnoremap <Leader>d "+d
nnoremap <Leader>p "+p
@@ -495,6 +500,8 @@ endfunction
command! ProseMode call ProseMode()
nmap <Leader>w :ProseMode<CR>



"###################################
"Source local .vimrc
"###################################

0 comments on commit f262e14

Please sign in to comment.
You can’t perform that action at this time.