-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathideavimrc
159 lines (129 loc) · 4.84 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Plugins
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set easymotion
set sneak
set NERDTree
set surround
"set multiple-coursors
set commentary
set ReplaceWithRegister
set argtextobj
set exchange
set textobj-entire
set highlightedyank
set vim-paragraph-motion " doesn't wokrk?
set textobj-indent
"set matchit " doesn't work with python
set quickscope
set which-key
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Plugin settings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let g:argtextobj_pairs="[:],(:),<:>"
" disable the timeout option
set notimeout
" increase the timeoutlen (default: 1000), don't add space around the equal sign
set timeoutlen=5000
let g:highlightedyank_highlight_duration = "500"
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Idea specific settings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set ideajoin
set ideastatusicon=gray
set idearefactormode=keep
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Common settings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set showmode
" 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
" Do incremental searching.
set incsearch
set nu
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vim Behavior
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" change world (cw) z dolarem na koncu
set cpoptions+=w
set cpoptions+=$
" substitute for whole line
set gdefault
set timeoutlen=400
set iskeyword-=. " '.' is an end of word designator
set iskeyword-=# " '#' is an end of word designator
set iskeyword-=- " '-' is an end of word designator
set visualbell
set noerrorbells
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Mappings
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let mapleader = " "
" Don't use Ex mode, use Q for formatting.
"map Q gq
"map ; : "i tak nie dziala
"nnoremap ;; ;
inoremap jk <Esc>
vnoremap jk <Esc>
" delete without yanking
nnoremap <leader>d "_d
vnoremap <leader>d "_d
" Yank from the cursor to the end of the line, to be consistent with C and D.
nnoremap Y y$
map <leader>f <Plug>(easymotion-s)
map <leader>e <Plug>(easymotion-f)
map <leader>od <Action>(Debug)
map <leader>r <Action>(RenameElement)
map <leader>c <Action>(Stop)
map <leader>tz <Action>(ToggleDistractionFreeMode)
map <leader>oP :NERDTreeToggle<CR>
map <leader>op :NERDTree<CR>
map <leader>s <Action>(SelectInProjectView)
map <leader>a <Action>(Annotate)
map <leader>h <Action>(Vcs.ShowTabbedFileHistory)
map <S-Space> <Action>(GotoNextError)
map <leader>b <Action>(ToggleLineBreakpoint)
"map <leader>o <Action>(FileStructurePopup)
map <leader><leader> <Action>(GotoFile)
map <leader>pr <Action>(RecentFiles)
map <leader>ot <Action>(ActivateTerminalToolWindow)
map <leader>oT <Action>(Terminal.OpenInTerminal)
" window
map <leader>ws <Action>(SplitHorizontally)
map <c-w>s <Action>(SplitHorizontally)w
map <leader>wv <Action>(SplitVertically)
map <c-w>v <Action>(SplitVertically)
map <leader>wr <Action>(MoveEditorToOppositeTabGroup)
map <c-w>r <Action>(MoveEditorToOppositeTabGroup)
map <leader>wq <Action>(CloseAllEditors)
map <c-w>q <Action>(CloseAllEditors)
" tabs -> buffers
map <leader>b[ <Action>(PreviousTab)
map <leader>b] <Action>(NextTab)
"toggle between last tabs :b#
nmap <silent> <Tab> :b#<CR>
"map <leader>a <Action>($SelectAll)
"map <leader>b <Action>(GotoDeclaration)
"map <leader>c <Action>($Copy)
"map <leader>d <Action>(EditorDuplicate)
"map <leader>e <Action>(RecentFiles)
" map <leader>f <Action>(Find)
"map <leader>g <Action>(GotoLine)
"map <leader>h <Action>(TypeHierarchy)
"map <leader>i <Action>(ImplementMethods)
"map <leader>m <Action>(EditorScrollToCenter)
"map <leader>n <Action>(FileChooser.NewFolder)
"map <leader>o <Action>(MethodHierarchy.OverrideMethodAction)
"map <leader>p <Action>(ParameterInfo)
"map <leader>q <Action>(GuiDesigner.QuickJavadoc)
"map <leader>r <Action>(Replace)
"map <leader>s <Action>(SaveAll)
"map <leader>t <Action>(Vcs.UpdateProject)
"map <leader>u <Action>(GotoSuperMethod)
"map <leader>v <Action>($Paste)
"map <leader>w <Action>(EditorSelectWord)
"map <leader>x <Action>($Cut)
"map <leader>y <Action>(EditorDeleteLine)
"map <leader>[ <Action>(EditorCodeBlockStart)
"map <leader>] <Action>(EditorCodeBlockEnd)