]> git.rmz.io Git - dotfiles.git/commitdiff
vim: use sneak for f and t
authorSamir Benmendil <me@rmz.io>
Fri, 6 Mar 2015 00:13:34 +0000 (00:13 +0000)
committerSamir Benmendil <me@rmz.io>
Fri, 6 Mar 2015 00:18:22 +0000 (00:18 +0000)
this might conflict with yankring

vim/vimrc

index 1b445f64bd0e4d3013a9648f09b0d0e6283024e7..f17711641fd958f618d43f631bea77c6ec837d96 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -549,6 +549,20 @@ let g:sneak#streak = 1
 let g:sneak#target_labels = "aoeuisnthdpylrcgfqjkxzmwvz" " dvorak
 let g:sneak#use_ic_scs = 1  " follow 'ignorecase' and 'smartcase'
 
 let g:sneak#target_labels = "aoeuisnthdpylrcgfqjkxzmwvz" " dvorak
 let g:sneak#use_ic_scs = 1  " follow 'ignorecase' and 'smartcase'
 
+" sneaky f and t
+nmap f <Plug>Sneak_f
+nmap F <Plug>Sneak_F
+xmap f <Plug>Sneak_f
+xmap F <Plug>Sneak_F
+omap f <Plug>Sneak_f
+omap F <Plug>Sneak_F
+nmap t <Plug>Sneak_t
+nmap T <Plug>Sneak_T
+xmap t <Plug>Sneak_t
+xmap T <Plug>Sneak_T
+omap t <Plug>Sneak_t
+omap T <Plug>Sneak_T
+
 " functions {{{1
 
 " Convenient command to see the difference between the current buffer and the
 " functions {{{1
 
 " Convenient command to see the difference between the current buffer and the