-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ideavimrc
46 lines (37 loc) · 1.42 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
" Custom keymap.
source ~/.config/nvim/mappings.vim
" Trims trailing whitespace, so that { and } motions work properly.
" todo: find a better (ideally automatic) fix for trailing whitespace.
noremap <Esc> :w<CR>
" Fix `cc` (change whole line) so it correctly autoindents, like in Vim.
nnoremap ww ddko
set scrolloff=5
set incsearch
set ignorecase
" Use IntelliJ's clipboard, and automatically share with the system clipboard.
set clipboard+=ideaput
set clipboard+=unnamedplus
" Turn off `ding` sound effects for movement keys.
set visualbell
" Smarter line joining; handles things like comments, etc.
set ideajoin
" This is a workaround for the following issue: The "Run" action causes focus
" to be *nowhere*, which causes the "FocusEditor" action to just not work.
" (This means you can't hit Escape to re-focus the editor after you Run.)
"
" To fix it, put this in `~/.config/JetBrains/CLionYYYY.N/options/macros.xml`,
" and bind one of them to Escape. (Don't unbind other meanings of Escape.)
"
"<application>
" <component name="ActionMacroManager">
" <macro name="Select editor (via navbar) -- only works in zen mode">
" <action id="ShowNavBar" />
" <action id="NavBar-cancel" />
" </macro>
" <macro name="Select editor (via switcher) -- should always work">
" <action id="SwitcherForward" />
" <action id="SwitcherBackward" />
" <shortuct text="ENTER" />
" </macro>
" </component>
"</application>