Created
June 30, 2011 07:36
-
-
Save t9md/1055815 to your computer and use it in GitHub Desktop.
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
" Emacs's incremental-search forward(/) and backward(?) to occur(Unite lines) with <C-o> | |
" ===================================================== | |
cnoremap <expr> <C-o> getcmdtype() == '/' | |
\ ? '<Esc>:<C-u>nohlsearch\|exe "Unite -input=" . escape(@/," ") . " lines:forward"<CR>' | |
\ : getcmdtype() == '?' | |
\ ? '<Esc>:<C-u>nohlsearch\|exe "Unite -input=" . escape(@/," ") . " lines:backward"<CR>' | |
\ : "\<C-o>" | |
" occur(=Unite lines) forward/backward | |
nnoremap ]o :UniteWithCursorWord lines:forward<CR> | |
nnoremap [o :UniteWithCursorWord lines:backward<CR> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment