-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.ideavimrc
73 lines (65 loc) · 2.07 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
" Basic
let mapleader=" "
set backspace=indent,eol,start
set colorcolumn=80
set cursorline
set encoding=utf-8
set hlsearch
set noexpandtab tabstop=4 shiftwidth=4
set noshowmode
set nowrap
set nu rnu
set showcmd
set smartcase
set smartindent
set scrolloff=8
" Plugins
set surround
set matchup
set tabular
set highlightedyank
let g:highlightedyank_highlight_duration = '250'
let g:highlightedyank_highlight_color = 'rgba(163, 190, 140, 155)'
" Copy to clipboard
vnoremap <leader>y "+y
nnoremap <leader>Y "+yg_
nnoremap <leader>y "+y
nnoremap <leader>yy "+yy
" Paste from clipboard
nnoremap <leader>p "+p
nnoremap <leader>P "+P
vnoremap <leader>p "+p
vnoremap <leader>P "+P
"nmap gf <Action>(GotoFile)
map <C-p> <Action>(GotoFile)
map <leader>b <Action>(ToggleLineBreakpoint)
map <leader>gN <Action>(VcsShowPrevChangeMarker)
map <leader>ga <Action>(Annotate)
map <leader>gn <Action>(VcsShowNextChangeMarker)
map <leader>gu <Action>(Vcs.RollbackChangedLines)
map <S-Space> <Action>(GotoNextError)
nmap <c-n> <Action>(SelectNextOccurrence)
nmap <c-w>q <Action>(CloseEditor)
nmap <c-w>Q <Action>(CloseAllEditorsButActive)
nmap <leader>G <Action>(Generate)
map <leader>R <Action>(RefactoringMenu)
nmap <leader>a <Action>(ShowIntentionActions)
nmap <leader>gd <Action>(QuickJavaDoc)
nmap <leader>r <Action>(RenameElement)
vmap <c-r> <Action>(Replace)
nmap <leader>S dWWPBB
nmap gD <Action>(GotoImplementation)
nmap g[ <Action>(GotoPreviousError)
nmap g] <Action>(GotoNextError)
nmap gd <Action>(GotoDeclaration)
nmap gt <Action>(GotoTest)
nmap gs <Action>(GotoSuperMethod)
command Goya action ToggleDistractionFreeMode
command W action Switcher
command Diff action LocalHistory.ShowHistory
command Gdiffb action Vcs.ShowHistoryForBlock
command Wrap action EditorToggleUseSoftWraps
" Do incremental searching.
set incsearch
" Don't use Ex mode, use Q for formatting.
map Q gq