aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.pluggins.vim1
-rw-r--r--.vimrc5
-rw-r--r--.zshrc1
3 files changed, 7 insertions, 0 deletions
diff --git a/.pluggins.vim b/.pluggins.vim
index 2a36b18..6e2f7a2 100644
--- a/.pluggins.vim
+++ b/.pluggins.vim
@@ -18,6 +18,7 @@ call plug#begin()
Plug 'vim-scripts/awk.vim'
Plug 'sheerun/vim-polyglot' " better syntax highlighting
Plug 'neovimhaskell/haskell-vim' " vim haskell highlighting
+ Plug 'haya14busa/incsearch.vim' " better incsearch
" themes
diff --git a/.vimrc b/.vimrc
index cc68548..d6261af 100644
--- a/.vimrc
+++ b/.vimrc
@@ -129,3 +129,8 @@ map Q <ESC>
set encoding=utf-8
set textwidth=89 " when line wrap occurs
+
+" incsearch mapping
+map / <Plug>(incsearch-forward)
+map ? <Plug>(incsearch-backward)
+map g/ <Plug>(incsearch-stay)
diff --git a/.zshrc b/.zshrc
index ab2a7b9..ffe90cc 100644
--- a/.zshrc
+++ b/.zshrc
@@ -14,6 +14,7 @@ bindkey -v
setopt auto_cd
setopt pushd_ignore_dups
setopt list_rows_first
+set extendedglob
# alias expansion
bindkey "^ " _expand_alias # ctrl+space to expand