aboutsummaryrefslogtreecommitdiffstats
path: root/bundle/case_star
diff options
context:
space:
mode:
authorTeddy Wing2019-12-05 02:06:11 +0100
committerTeddy Wing2019-12-09 20:54:23 +0100
commite981d27d9b6c6a8c4143e257ec98db7ec1625865 (patch)
tree67a450d9430b876e80d9f9bc6bdb7b910652c185 /bundle/case_star
parentec48cdda27baf830229584df6b3695bc30b81f12 (diff)
downloaddotvim-e981d27d9b6c6a8c4143e257ec98db7ec1625865.tar.bz2
Add ideas for 'case_star' plugin
Mappings for case sensitive versions # and *. Not completely figured out yet.
Diffstat (limited to 'bundle/case_star')
-rw-r--r--bundle/case_star/plugin/case_star.vim5
1 files changed, 5 insertions, 0 deletions
diff --git a/bundle/case_star/plugin/case_star.vim b/bundle/case_star/plugin/case_star.vim
new file mode 100644
index 0000000..62deac7
--- /dev/null
+++ b/bundle/case_star/plugin/case_star.vim
@@ -0,0 +1,5 @@
+" TODO: if not on start of word, ensure we move to previous match
+nnoremap <silent> c# ?\C<C-r>=expand('<cword>')<CR><CR>
+nnoremap <silent> c* /\C<C-r>=expand('<cword>')<CR><CR>
+
+" TODO: Currently behaves like g* g#. Need * # versions.