Browse Source

Adjust ideavimrc

master
Ein Verne 2 years ago
parent
commit
b1c21b8b3c
  1. 5
      idea/.ideavimrc
  2. 2
      zsh/fzf.zsh

5
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 <Leader>r <ESC>:source ~/.ideavimrc<cr>
" map r to reload ideavimrc in normal mode
noremap <space>r <ESC>:source ~/.ideavimrc<cr>
" general
nnoremap <Leader>f :<C-u>action ReformatCode<CR>

2
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) &&

Loading…
Cancel
Save