-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_ideavimrc
73 lines (57 loc) · 1.59 KB
/
dot_ideavimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
"" 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=40
set background=dark
""" Plugins --------------------------------
set surround
set multicursor
set commentary
set argtextobj
set easymotion
set textobj-entire
set ReplaceWithRegister
set exchange
" Trying the new syntax
Plug 'machakann/vim-highlightedyank'
set clipboard+=unnamed
set clipboard+=ideaput
nnoremap \e :e ~/.ideavimrc<CR>
map \r <Action>(JupyterRestartKernelRunAllAction)
map q <Plug>(multicursor-ms/)
map z <Plug>(multicursor-mca)
map Z <Plug>(multicursor-mci)
let mapleader=" "
map f <Plug>(easymotion-s)
map <leader>e <Plug>(easymotion-f)
map <leader>d <Action>(Debug)
map <leader>r <Action>(RenameElement)
map <leader>c <Action>(Stop)
map <leader>z <Action>(ToggleDistractionFreeMode)
map <leader>t <Action>(ActivateTerminalToolWindow)
map <leader>l <Action>(ReformatCode)
map <leader>c <Action>(copilot.chat.show)
map / <Action>(Find)
map <leader>rr <Action>(Run)
set ideajoin
set idearefactormode=keep
map <S-Space> <Action>(GotoNextError)
map <leader>p <Action>(ManageRecentProjects)
" remap ctrl + hjkl to jump between windows
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l
" Search
set incsearch
map <leader>a <Action>(GotoAction)
map <leader>f <Action>(GotoFile)
map <leader>d <Action>(GotoDeclaration)
map gb <Action>(Back)
map gf <Action>(Forward)
nnoremap <leader>[ `[V`]<
nnoremap <leader>] `[V`]>
" Run
map <leader>i ~hi