Created
February 6, 2012 04:08
-
-
Save saihoooooooo/1749524 to your computer and use it in GitHub Desktop.
search operator by vim-operator-user
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
map x/ <Plug>(operator-search) | |
call operator#user#define('search', 'OperatorSearch') | |
function! OperatorSearch(motion_wise) | |
if a:motion_wise == 'char' | |
execute 'silent normal! `[v`]"zy' | |
call search(@z) | |
let @/ = @z | |
set hlsearch | |
endif | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment