ideaVim
配置文件
"" Source your .vimrc
"source ~/.vimrc
"" -- Suggested options --
" Show a few lines of context around the cursor. Note that this makes the
" text scroll if you mouse-click near the start or end of the window.
set scrolloff=5
let mapleader = " "
" 普通模式下和可视模式下 大写方向键移动5个单位
nnoremap H 5h
nnoremap J 5j
nnoremap K 5k
nnoremap L 5l
vnoremap H 5h
vnoremap J 5j
vnoremap K 5k
vnoremap L 5l
" tab 映射
nnoremap th :tabp
nnoremap tl :tabn
" 分屏 映射
nnoremap sv :split
nnoremap sh :vsplit
" 分屏光标移动
nnoremap h h
nnoremap j j
nnoremap k k
nnoremap l l
nnoremap H
nnoremap L
nnoremap K
nnoremap J
" vim 剪贴板与 windows 的系统剪贴板共用
" linux 和 mac 的配置不同
set clipboard+=unnamed
vnoremap y "+y
" Do incremental searching.
set incsearch
" Don't use Ex mode, use Q for formatting.
map Q gq
"" -- Map IDE actions to IdeaVim -- https://jb.gg/abva4t
"" Map r to the Reformat Code action
"map r (ReformatCode)
"" Map d to start debug
"map d (Debug)
"" Map b to toggle the breakpoint on the current line
"map b (ToggleLineBreakpoint)
" Find more examples here: https://jb.gg/share-ideavimrc