-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathideavimrc
More file actions
130 lines (92 loc) · 3.45 KB
/
ideavimrc
File metadata and controls
130 lines (92 loc) · 3.45 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
" Reload me with :, then `:source ~/.ideavimrc` - or just leader+i
" @group settings
let mapleader = " "
map <leader>i :source ~/.ideavimrc<CR>:echo "Reloaded .ideavimrc"<CR>
set noexpandtab
set clipboard=unnamed
set visualbell
set noerrorbells
set easymotion
set highlightedyank
set exchange
let g:highlightedyank_highlight_duration = "250"
let g:highlightedyank_highlight_color = "rgba(79, 58, 118, 255)"
" @group dvorak
" search
noremap l n
noremap L N
" movement
noremap d h
noremap h j
noremap t k
noremap n l
" bottom of screen
noremap <s-h> L
" top of screen
noremap <s-t> H
" middle of screen
noremap <s-n> M
" deletion
noremap j d
" 'til
noremap k t
noremap <s-k> <s-t>
" @group intellij
imap <S-Enter> <ESC>:action HippieCompletion<CR>a
imap <S-C-Enter> <ESC>:action HippieBackwardCompletion<CR>a
map <leader>u <ESC>:action FindUsages<CR>
" @group move lines
map <Down> <ESC>:action MoveStatementDown<CR>
map <Up> <ESC>:action MoveStatementUp<CR>
" @group blank lines
map <Enter> moo<Esc>`o
map <S-Enter> moO<Esc>`o
" @group cursive
" use `:actionlist :cursive` to see a list of all actions
map ! i#_<esc>
map <leader>! :action :cursive.actions.paredit/backward-up<CR>I#_<ESC><CR>
map <leader>r :action ReformatCode<CR>
" map <leader>R :action $SelectAll<CR>:action ReformatCode<CR>
map <leader>R :action ShowReformatFileDialog<CR>
map <leader>{ :action :cursive.actions.paredit/wrap-curly<CR>
map <leader>} :action :cursive.actions.paredit/close-curly-and-newline<CR>
map <leader>( :action :cursive.actions.paredit/wrap-paren<CR>
map <leader>) :action :cursive.actions.paredit/close-paren-and-newline<CR>
map <leader>[ :action :cursive.actions.paredit/wrap-square<CR>
map <leader>] :action :cursive.actions.paredit/close-square-and-newline<CR>
map <leader>nn :action :cursive.actions.paredit/forward<CR>
map <leader>nt :action :cursive.actions.paredit/forward-up<CR>
map <leader>nh :action :cursive.actions.paredit/forward-down<CR>
map <leader>dd :action :cursive.actions.paredit/backward<CR>
map <leader>dt :action :cursive.actions.paredit/backward-up<CR>
map <leader>dh :action :cursive.actions.paredit/backward-down<CR>
map <leader>mt :action :cursive.actions.paredit/move-form-up<CR>
map <leader>mh :action :cursive.actions.paredit/move-form-down<CR>
map <leader>pp :action ActivateProjectToolWindow<CR>
map <leader>ps :action SelectInProjectView<CR>
map <leader>wh :action SplitHorizontally<CR>
map <leader>wn :action SplitVertically<CR>
map <leader>fc :action CopyElement<CR>
map <leader>ff :action RecentFiles<CR>
map <leader>fm :action Move<CR>
map <leader>fn :action NewFile<CR>
map <leader>fr :action RenameFile<CR>
map <leader>fs :action NewScratchFile<CR>
map <leader>fy :action $SelectAll<CR>:action $Copy<CR>:action CollapseSelection<CR>
map <leader>fo :action OpenFile<CR>
map <leader>fg :action RevealIn<CR>
map <leader>ft :action NewFromTemplate<CR>
map <leader>l /(<CR>Lmo%x`oi#<ESC>nv/(<CR>dx
map <leader>L /(<CR>L%a)<ESC>d%dxafn<SPACE>[]<SPACE>(<ESC>ddi
" map <leader>z mogg/[<CR>o[uni.core<SPACE>:as<SPACE>$]<ESC>`oz.h
map <leader>z mogg/]<CR>a<CR>[uni.core<SPACE>:as<SPACE>$]<ESC>`oz.h
" @group repl
map <leader>xr :action Run<CR>
map <leader>xc :action :cursive.repl.actions/clear-repl<CR>
map <leader>xe :action :cursive.repl.actions/jump-to-repl<CR>
map <leader>xo :action :cursive.repl.actions/jump-to-output<CR>
" @group jumping
" map <leader><Space> :action AceAction<CR>
map <Space><Space> :action AceAction<CR>
" @group misc
noremap <leader>s :sort<cr>