-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ideavimrc
82 lines (65 loc) · 1.8 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
" Plugins
set surround
set easymotion
set multiple-cursors
set commentary
set ReplaceWithRegister
set argtextobj
set textobj-entire
set exchange
set incsearch
set hlsearch
set ignorecase
set smartcase
set showmode
set scrolloff=5
set ideavimsupport+=singleline
set textobj-indent
" Idea specific settings
set ideajoin
set ideastatusicon=gray
set clipboard+=unnamed
let mapleader=" "
" Mappings
map q <leader><leader>s
nnoremap <C-j> J
noremap <A-V> <C-V>
nnoremap H :action Back<CR>
nnoremap L :action Forward<CR>
nnoremap J :action PreviousTab<CR>
nnoremap K :action NextTab<CR>
nnoremap x "_x
imap jj <Esc>
" Leader mappings
nnoremap <SPACE> <Nop>
map <leader>d :action Debug<CR>
map <leader>D :action ChooseDebugConfiguration<CR>
map <leader>r :action Run<CR>
map <leader>R :action ChooseRunConfiguration<CR>
map <leader>n :action Resume<CR>
map <leader>c :action Stop<CR>
map <leader>e :action EvaluateExpression<CR>
map <leader>b :action ToggleLineBreakpoint<CR>
map <leader>ge :action ShowExecutionPoint<CR>
map <leader>gn :action ShowNavBar<CR>
map <leader>gr :action GotoNextError<CR>
map <leader>gR :action GotoPreviousError<CR>
map <leader>gp :action SelectInProjectView<CR>
map <leader>ga :action Annotate<CR>
map <leader>gs :action GotoSuperMethod<CR>
map <leader>f :action HideAllWindows<CR>
map <leader>q :action QuickTypeDefinition<CR>
map <leader>w :action NextSplitter<CR>
map <leader>mr :action Run Mypy Daemon<CR>
map <leader>mp :action Previous Mypy Error<CR>
map <leader>mn :action Next Mypy Error<CR>
map <leader>a :action GotoDeclaration<CR>
map <leader>x :action CloseContent<CR>
" Reformat the current line only
map <leader>l V:action ReformatCode<CR>
map <leader>o :action FileStructurePopup<CR>
let g:argtextobj_pairs="(:),[:],{:}"
noremap h <NOP>
noremap j <NOP>
noremap k <NOP>
noremap l <NOP>