-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdot_ideavimrc
104 lines (84 loc) · 2.63 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
103
104
"" Source your .vimrc
source ~/.vimrc
Plug 'preservim/nerdtree'
Plug 'machakann/vim-highlightedyank'
let mapleader=" "
let g:highlightedyank_highlight_duration = "1000"
let g:EasyMotion_override_acejump = 0
"" -- Suggested options --
" Show a few lines of context around the cursor. Note that this makes the
" text scroll if you mouse-click near the start or end of the window.
set scrolloff=5
set surround
set commentary
set NERDTree
set multiple-cursors
set easymotion
set smartcase
set cb=unnamed
set visualbell
set relativenumber number
" Do incremental searching.
"set incsearch
nmap <Tab>n :NERDTree<CR>
nmap \f :NERDTreeFind<CR>
" 아래 mapping 은 같은 기능을 한다.
nmap <Tab>f <Action>(QuickFixes)
" nnoremap <Tab>f :action QuickFixes<CR>
nmap <Tab>c <Action>(ChangesView.NewChangeList)
nmap <Tab>vh <Action>(Vcs.ShowTabbedFileHistory)
"window navigation
nmap <Tab>hw <Action>(HideAllWindows)
nmap <Tab>dw <Action>(HideAllWindows)<Action>(ActivateProjectToolWindow)<CR>
map <Tab>r :action MoveTabRight<CR>
nnoremap <Tab>m :action MoveEditorToOppositeTabGroup<CR>
"nmap q :q<CR>
noremap <c-z> :action ToggleDistractionFreeMode<CR>
noremap <Tab>pw :action PreviousWindow<CR>
noremap <Tab>nw :action NextWindow<CR>
"multi cursor
map <C-N> <A-N>
map <C-P> <A-P>
map <C-X> <A-X>
map g<C-N> g<A-N>
"easymotion
map <Leader> <Plug>(easymotion-prefix)
nmap <Leader>l <Plug>(easymotion-lineforward)
nmap <Leader>j <Plug>(easymotion-j)
nmap <Leader>k <Plug>(easymotion-k)
nmap <Leader>h <Plug>(easymotion-linebackward)
nmap <Leader>a <Plug>(easymotion-jumptoanywhere)
noremap <Leader>e :action EditSourceInNewWindow<CR>
"Acejump target mode
map f <Action>(AceAction)
map F <Action>(AceTargetAction)
"select
map <C-S> :action EditorSelectWord<CR>
vnoremap if ]Mo[m^V
"refactoring
map gr :action RenameElement<CR>
nmap gn <Action>(Inline)
vmap gs <Action>(StringManipulation.SwitchStyleAction)
"" -- Map IDE actions to IdeaVim -- https://jb.gg/abva4t
"map <Tab>h <Action>(LocalHistory.ShowHistory)
"" Map \r to the Reformat Code action
"map \r <Action>(ReformatCode)
"" Map <leader>d to start debug
map <leader>d <Action>(Debug)
map <leader>r <Action>(Run)
map <leader>tr <Action>(RunClass)
"" Map \b to toggle the breakpoint on the current line
map \b <Action>(ToggleLineBreakpoint)
"" task management
nmap tg <Action>(tasks.goto)
nmap tc <Action>(tasks.close)
nmap ts <Action>(tasks.switch)
map <Tab>to <C-w>o<CR>:tabonly<CR>
"" switch buffered window
noremap <C-[> gT
noremap <C-]> gt
"" for Avoiding keymap conflicts
map <D-;> :action ShowProjectStructureSettings<CR>
" Find more examples here: https://jb.gg/share-ideavimrc
set ideajoin
set clipboard+=ideaput