aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-11-23 14:37:28 +1300
committerTom Ryder <tom@sanctum.geek.nz>2019-11-23 14:37:28 +1300
commitbc36cf63e4b78b24300f49556253c49e85ec8e67 (patch)
tree2e62500440992a986331d7528ab85a209af48231
parent21a5051fd35fc5f50799790e447acabe3e0d5385 (diff)
parentb159e736e7408149ac209a9f96129520b35578ea (diff)
downloaddotfiles-bc36cf63e4b78b24300f49556253c49e85ec8e67.tar.gz
dotfiles-bc36cf63e4b78b24300f49556253c49e85ec8e67.zip
Merge branch 'release/v7.19.0'v7.19.0
* release/v7.19.0: Refine "sticky star" mapping
-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>`