From b1c21b8b3c10b7b57bb1e8090244131f1d33c8ca Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Tue, 12 Jul 2022 17:44:19 +0800 Subject: [PATCH] Adjust ideavimrc --- idea/.ideavimrc | 5 +++-- zsh/fzf.zsh | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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) &&