-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_ideavimrc
102 lines (79 loc) · 2.57 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
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
set ideajoin
set incsearch
set ignorecase
set smartcase
set scrolloff=5
set showmode
let mapleader=" "
let g:highlightedyank_highlight_duration = "150"
let g:EasyMotion_do_mapping = 0
let g:NERDTreeMapQuit = '<C-n>'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-commentary'
Plug 'machakann/vim-highlightedyank'
Plug 'easymotion/vim-easymotion'
Plug 'preservim/nerdtree'
set easymotion
map <space> <leader>
nmap <leader>y <Action>(ReformatCode)
nmap gq <Action>(ReformatCode)
map <F8> <Action>(ReformatCode)
nmap <C-n> :NERDTreeToggle<CR>
nmap <Tab> <Plug>(easymotion-s)
nmap s <Plug>(easymotion-f)
nmap S <Plug>(easymotion-F)
nmap <leader><leader> <Action>(RecentFiles)
nmap <leader>a <Action>(ShowIntentionActions)
nmap <leader>d <Action>(ActivateProblemsViewToolWindow)
nmap <leader>e <Action>(RecentFiles)
nmap <leader>f <Action>(GotoFile)
nmap <leader>k <Action>(GotoAction)
nmap <leader>s <Action>(GotoSymbol)
nmap <leader>/ <Action>(FindInPath)
" map <leader>d <Action>(Debug)
map <leader>r <Action>(RenameElement)
" map <leader>c <Action>(Stop)
map <leader>z <Action>(ToggleDistractionFreeMode)
map <leader>s <Action>(SelectInProjectView)
" map <leader>a <Action>(Annotate)
map <leader>h <Action>(Vcs.ShowTabbedFileHistory)
map <leader>b <Action>(ToggleLineBreakpoint)
map <leader>o <Action>(FileStructurePopup)
nmap <A-o> o<esc>
nmap <A-O> O<esc>
nmap ]d <Action>(GotoNextError)
nmap [d <Action>(GotoPreviousError)
nmap ]c <Action>(VcsShowNextChangeMarker)
nmap [c <Action>(VcsShowPrevChangeMarker)
nmap <C-d> 20j
nmap <C-u> 20k
nmap <C-/> <Action>(CommentByLineComment)
nmap <C-_> <Action>(CommentByLineComment)
xmap <C-/> <Action>(CommentByLineComment)
xmap <C-_> <Action>(CommentByLineComment)
nmap gd <Action>(GotoDeclaration)
nmap gr <Action>(FindUsages)
nmap gc <Action>(GotoClass)
nmap gi <Action>(GotoImplementation)
nmap gp <Action>(GotToSuperMethod)
nmap vu <Action>(MoveElementRight)
nmap vd <Action>(MoveElementLeft)
nmap vU <Action>(MoveStatementUp)
nmap vD <Action>(MoveStatementDown)
nmap <CR> <Action>(EditorSelectWord)
xmap <CR> <Action>(EditorSelectWord)
nmap <BS> <Action>(EditorUnSelectWord)
xmap <BS> <Action>(EditorUnSelectWord)
nmap \r <Action>(IdeaVim.ReloadVimRc.reload)
nmap L <Action>(ShowErrorDescription)
sethandler <c-j> a:vim
sethandler <c-k> a:vim
nnoremap <c-h> <c-w>h
nnoremap <c-l> <c-w>l
nnoremap <c-j> <c-w>j
nnoremap <c-k> <c-w>k
nmap Q <Action>(CloseContent)
nmap <Leader>r <Action>(Refactorings.QuickListPopupAction)
xmap <Leader>r <Action>(Refactorings.QuickListPopupAction)
nnoremap g; :action JumpToLastChange<Enter>
nnoremap g, :action JumpToNextChange<Enter>