-
Notifications
You must be signed in to change notification settings - Fork 1
/
dot_ideavimrc
75 lines (66 loc) · 1.98 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
74
75
let mapleader = ' '
set number
set relativenumber
set incsearch
" set incsearch hlsearch
set ignorecase smartcase
set clipboard=unnamed
set scrolloff=5
set showmode
set commentary
set surround
set textobj-entire
set argtextobj
set multiple-cursors
set ideajoin
set ReplaceWithRegister
set highlightedyank
set multiple-cursors
set easymotion
let g:highlightedyank_highlight_duration = "1000"
" let g:highlightedyank_highlight_color = "rgba(255, 83, 112, 1)"
nnoremap <leader><leader> :action SearchEverywhere<cr>
nnoremap <leader>ff :action FindInPath<cr>
nnoremap <leader>fu :action FindUsages<cr>
nnoremap <leader>su :action ShowUsages<cr>
nnoremap <leader>cv :action ChangeView<cr>
nnoremap <leader>bb :action ToggleLineBreakpoint<cr>
nnoremap <leader>br :action ViewBreakpoints<cr>
nnoremap <leader>ic :action InspectCode<cr>
nnoremap <leader>oi :action OptimizeImports<cr>
nnoremap <leader>re :action RenameElement<cr>
nnoremap <leader>rf :action RenameFile<cr>
nnoremap <leader>gq :action ReformatCode<cr>
nnoremap <leader>dd :action Debug<cr>
nnoremap <leader>dc :action ChooseDebugConfiguration<cr>
nnoremap <leader>rr :action Run<cr>
nnoremap <leader>rc :action ChooseRunConfiguration<cr>
nnoremap <leader>q :action CloseActiveTab<cr>
nnoremap <leader>ga :action GotoAction<cr>
nnoremap <leader>gi :action GotoImplementation<cr>
nnoremap <leader>gs :action GotoSuperMethod<cr>
nnoremap <leader>gd :action GotoDeclaration<cr>
nnoremap <leader>gt :action GotoTest<cr>
nnoremap <leader>gr :action GotoRelated<cr>
nnoremap <leader>gb :action Annotate<cr>
nnoremap <Enter> za
vnoremap <Enter> za
nnoremap Y y$
" faster movement to end and beggining of the line
nnoremap L $
nnoremap H ^
vnoremap L $
vnoremap H ^
" make paste not override the register
vnoremap p "_dP
" Bubble multiple lines
vnoremap <c-k> xkP`[V`]
vnoremap <c-j> xp`[V`]
" Bubble single lines
nmap <a-k> :m .-2<CR>
nmap <a-j> :m .+1<CR>
" switch panes nicely
nnoremap <C-h> <C-w>h
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-l> <C-w>l