mirror of
https://github.com/d0zingcat/dotfiles.git
synced 2026-05-13 15:09:34 +00:00
init
This commit is contained in:
55
.ideavimrc
Normal file
55
.ideavimrc
Normal file
@@ -0,0 +1,55 @@
|
||||
"" 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
|
||||
|
||||
" Do incremental searching.
|
||||
set incsearch
|
||||
set easymotion
|
||||
|
||||
let mapleader="\<Space>"
|
||||
" Don't use Ex mode, use Q for formatting.
|
||||
map Q gq
|
||||
|
||||
|
||||
map <Leader>l <Plug>(easymotion-lineforward)
|
||||
map <Leader>j <Plug>(easymotion-j)
|
||||
map <Leader>k <Plug>(easymotion-k)
|
||||
map <Leader>h <Plug>(easymotion-linebackward)
|
||||
map <Leader>w <Plug>(easymotion-w)
|
||||
map <Leader>b <Plug>(easymotion-b)
|
||||
nmap s <Plug>(easymotion-s2)
|
||||
nmap t <Plug>(easymotion-t2)
|
||||
|
||||
let g:EasyMotion_smartcase = 1
|
||||
|
||||
" ==== 系统剪切板复制粘贴 ====
|
||||
" v 模式下复制内容到系统剪切板
|
||||
vmap <Leader>c "+yy
|
||||
" n 模式下复制一行到系统剪切板
|
||||
nmap <Leader>c "+yy
|
||||
" n 模式下粘贴系统剪切板的内容
|
||||
nmap <Leader>v "+p
|
||||
|
||||
|
||||
|
||||
"" -- Map IDE actions to IdeaVim -- https://jb.gg/abva4t
|
||||
"" Map \r to the Reformat Code action
|
||||
"map \r <Action>(ReformatCode)
|
||||
|
||||
"" Map <leader>d to start debug
|
||||
"map <leader>d <Action>(Debug)
|
||||
|
||||
"" Map \b to toggle the breakpoint on the current line
|
||||
"map \b <Action>(ToggleLineBreakpoint)
|
||||
|
||||
|
||||
" Find more examples here: https://jb.gg/share-ideavimrc
|
||||
|
||||
map("i", "<c-b>", "<c-o>b")
|
||||
map("i", "<c-f>", "<c-o>l")
|
||||
map("i", "<c-j>", "<c-o>j")
|
||||
map("i", "<c-k>", "<c-o>k")
|
||||
Reference in New Issue
Block a user