-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathideavimrc
64 lines (50 loc) · 1.25 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
" basics
set number
set relativenumber
set scrolloff=8
set tabstop=2 softtabstop=2
set shiftwidth=2
set expandtab
set smartindent
" make IntelliJ shut up
set visualbell
set noerrorbells
" Center cursor on movements
map <C-d> <C-d>zz
map <C-u> <C-u>zz
map <C-f> <C-f>zz
map <C-b> <C-b>zz
map n nzz
map N Nzz
set incsearch " incremental search
set ignorecase " ignore case when searching
" Don't use Ex mode, use Q for formatting.
map Q gq
" Show mode in status line
set showmode
" Have clipboard available in yank
set clipboard+=unnamed
" Set leader to space
let mapleader = " "
" ideavim plugins
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-surround'
Plug 'easymotion/vim-easymotion'
nmap s <Plug>(easymotion-s2)
" Search Actions
map <leader>ff <Action>(SearchEverywhere)
" Debugging Actions
map <leader>bu <Action>(BuildProject)
map <leader>dd <Action>(Debug)
map <leader>dr <Action>(Resume)
map <leader>st <Action>(Stop)
map <leader>bp <Action>(ToggleLineBreakpoint)
" Refactoring Actions
map <leader>re <Action>(RenameElement)
map <leader>em <Action>(ExtractMethod)
map <leader>lf <Action>(ReformatCode)
" Navigation Actions
map <leader>td <Action>(GoToTypeDeclaration)
map <leader>tu <Action>(FindUsages)
" Panels
map <leader>pp <Action>(ActivateProjectToolWindow)