diff --git a/idea/.ideavimrc b/idea/.ideavimrc index 4a1fef0..67bf837 100644 --- a/idea/.ideavimrc +++ b/idea/.ideavimrc @@ -17,7 +17,7 @@ let g:mapleader = "," " https://github.com/JetBrains/ideavim/blob/master/doc/set-commands.md set hlsearch set incsearch -set scrolloff=5 +set scrolloff=2 set ignorecase set smartcase " 当前模式 @@ -26,7 +26,8 @@ set history=10000 " source ~/.vimrc -noremap r :source ~/.ideavimrc +" map r to reload ideavimrc in normal mode +noremap r :source ~/.ideavimrc " general nnoremap f :action ReformatCode diff --git a/zsh/fzf.zsh b/zsh/fzf.zsh index 640fd89..47de317 100644 --- a/zsh/fzf.zsh +++ b/zsh/fzf.zsh @@ -63,7 +63,7 @@ ec () { } # fd - cd to selected directory -fd() { +fcd() { local dir dir=$(find ${1:-.} -path '*/\.*' -prune \ -o -type d -print 2> /dev/null | fzf +m) &&