-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathideavimrc
More file actions
45 lines (36 loc) · 1.05 KB
/
ideavimrc
File metadata and controls
45 lines (36 loc) · 1.05 KB
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
"""
let mapleader="\"
command! Config e ~/.ideavimrc
nnoremap <leader>ce :e ~/.ideavimrc<CR>
nnoremap <leader>cr :action IdeaVim.ReloadVimRc.reload<CR>
""" easymotion ------------------------------
set easymotion
map <leader>f <Plug>(easymotion-s)
map <leader>e <Plug>(easymotion-f)
""" Common settings -------------------------
set showmode
set scrolloff=5
set number
" case sensitive search only when case specified
set ignorecase
set smartcase
set hlsearch
" Share system clipboard
set clipboard+=unnamed
set clipboard+=ideaput
""" Idea specific settings ------------------
set ideajoin
set ideastatusicon=gray
""" My Mappings -----------------------------
nmap gd <Action>(GotoDeclaration)
nmap gr <Action>(FindUsages)
nmap gR <Action>(RenameElement)
nnoremap <C-u> :tabprevious<CR>
nnoremap <C-o> :tabnext<CR>
nnoremap <C-p> :action GotoFile<CR>
map <leader>d <Action>(Debug)
map <leader>r <Action>(RerunFailedTests)
map <leader>c <Action>(Stop)
map <leader>s <Action>(SelectInProjectView)
map <leader>a <Action>(Annotate)
map <leader>n <Action>(GotoNextError)