Last active
August 29, 2015 14:09
-
-
Save pocke/0de2a084ca594fd40943 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
if has('vim_starting') | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
endif | |
call neobundle#begin(expand('~/.vim/bundle/')) | |
NeoBundle 'haya14busa/incsearch.vim' | |
call neobundle#end() | |
filetype plugin indent on " Required! | |
map / <Plug>(incsearch-forward) | |
syntax enable | |
cnoremap <CR> <C-\>e Cr()<CR><CR> | |
function! Cr() | |
return getcmdline() | |
endfunction |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
再現手順
vimrcを適用した状態で、
/hoge<CR>
など適当な単語を検索しようとしてEnterを押すと、E486: Pattern not found: hoge<C-\>e Cr()
と言われる(mapしている文字列が検索にくっつく)Cr()
の中はなんでもよさそうです。ただ、getcmdline()
しておかないとコマンドラインが使い物にならなくなってつらぽよです。