-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ideavimrc
111 lines (83 loc) · 3.24 KB
/
.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
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
" <C- ctrl
" <S- shift
" <m- meta/alt
set clipboard+=unnamed
set iskeyword+=-
set ignorecase
set smartcase
set backspace=indent,eol,start " backspace over everything
let mapleader = " "
inoremap fj <Esc>`^
"inoremap jf <Esc>`^
"vnoremap jf <Esc>
vnoremap fj <Esc>
"nnoremap fd <Esc>`^
nnoremap <leader>vs :source ~/.ideavimrc<CR>
nnoremap <leader>ve :e ~/.ideavimrc<CR>
nmap <C-[> ?[{(\[\])}]<CR>
vmap <C-[> ?[{(\[\])}]<CR>
imap <C-[> <Esc><C-[>
" inoremap <C-[> x<C-c>"_x?[{(\[\])}]<CR>i
nmap <C-]> /[{(\[\])}]<CR>
vmap <C-]> /[{(\[\])}]<CR>
imap <C-]> <Esc><C-]>
" inoremap <C-]> <Esc>/[{(\[\])}]<CR>a
nmap <M-[> ?[{(\[\])}]<CR>
vmap <M-[> ?[{(\[\])}]<CR>
imap <M-[> <Esc><M-[>
nmap <M-]> /[{(\[\])}]<CR>
vmap <M-]> /[{(\[\])}]<CR>
imap <M-]> <Esc><M-]>
"Allow all window commands in insert mode without accidentally
"deleting words
imap <C-w> <C-o><C-w>
nnoremap . :action VimRepeatChange<CR>
" Fix shift selecting
inoremap <S-Left> <C-O>:action EditorLeftWithSelection<CR>
inoremap <S-Right> <C-O>:action EditorRightWithSelection<CR>
inoremap <S-Up> <C-O>:action EditorUpWithSelection<CR>
inoremap <S-Down> <C-O>:action EditorDownWithSelection<CR>
" noremap ] :action EditorSelectWord<CR>
" noremap [ :action EditorUnSelectWord<CR>
" moving to top-level of form
nmap [[ ?^(<CR>
nmap ]] /^(<CR>
nnoremap gu :action :cursive.actions.paredit/backward-up<CR>
" imap <S-Enter> <Esc> :action :cursive.actions.paredit/backward-up<CR> VimMotionInnerBlockBrace<CR>
nnoremap <S-Enter> a<CR>
nnoremap <Enter> i<CR>
"<CR> %a<CR>
nnoremap <leader>y :action EditorCopy<CR>
nnoremap <leader>p :action EditorPaste<CR>
nnoremap <leader><Space> i<Space><Right><ESC>
nnoremap g, :action Back<CR>
nnoremap g. :action Forward<CR>
nnoremap <tab> :action EditorIndentLineOrSelection<CR>
nnoremap <C-;> /[{(\[\])}]<CR>a
vnoremap <C-;> <Esc>/[{(\[\])}]<CR>a
imap <C-;> <Esc>/[{(\[\])}]<CR>a
nmap <leader>fs :action SaveDocument<CR>
nmap <leader>fr :action RecentFiles<CR>
nmap <leader>fe :action RecentChangedFiles<CR>
nnoremap <leader>ff :action GotoFile<CR>
nmap <leader>ch :action Cursive.Repl.Command.hello command<CR>
nnoremap <leader>cli :action Tool_External Tools_services-clean-install<CR>
nnoremap <leader>rc" :action Macro.raise-current-sexp<CR>
nnoremap <leader>rc' :action :cursive.actions.paredit/raise<CR>
nnoremap <leader>rr :action RenameElement<CR>
nnoremap <leader>ri :action ReformatCode<CR>
nnoremap <leader>su :action FindUsages<CR>
nnoremap <leader>sd :action GotoDeclaration<CR>
nnoremap <leader>ss :action FileStructurePopup<CR>
nnoremap <leader>se :action SearchEverywhere<cr>
nnoremap <leader>sk :action GotoKeyword<cr>
nnoremap <leader>wc :action CloseEditor<CR>
nnoremap <leader>pr :action Cursive.Repl.Command.run-saved-form<CR>
nnoremap <leader>psl :action Cursive.Repl.Command.save-letscope-form<CR>
nnoremap <leader>psf :action Cursive.Repl.Command.save-form<CR>
nnoremap <leader>crl :action :cursive.repl.actions/load-file<CR>
nnoremap <leader>crc :action :cursive.repl.actions/clear-repl<CR>
nnoremap <leader>ctn :action :cursive.testing.actions/run-ns-tests<CR>
nnoremap <leader>ctt :action :cursive.testing.actions/run-single-test<CR>
nnoremap <leader>ctr :action :cursive.testing.actions/rerun-last-test<CR>
noremap <m-y> :action Cursive.Repl.Command.hello command<CR>