aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--VERSION4
-rw-r--r--vim/vimrc8
2 files changed, 8 insertions, 4 deletions
diff --git a/VERSION b/VERSION
index 85838060..2a5c1c72 100644
--- a/VERSION
+++ b/VERSION
@@ -1,2 +1,2 @@
-tejr dotfiles v7.18.0
-Thu, 14 Nov 2019 01:14:18 +0000
+tejr dotfiles v7.19.0
+Sat, 23 Nov 2019 01:37:27 +0000
diff --git a/vim/vimrc b/vim/vimrc
index 93efe27c..b4f5243a 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -1496,8 +1496,12 @@ sunmap <Leader>&
map <Leader>7 <Leader>&
ounmap <Leader>7
sunmap <Leader>7
-"" Leader,*/8 is sticky-star: search, highlight, but don’t move
-nnoremap <silent> <Leader>* *N
+"" Leader,*/8 is "sticky star":
+"" - Set search string to word under cursor
+"" - Show search highlighting if it's enabled
+"" - Don't move the cursor
+nnoremap <silent> <Leader>*
+ \ :<C-U>let @/ = expand('<cword>')<CR>:let &hlsearch = &hlsearch<CR>
nmap <Leader>8 <Leader>*
"" Leader,` opens a scratch buffer, horizontally split
nnoremap <silent> <Leader>`