-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ideavimrc
60 lines (44 loc) · 1023 Bytes
/
.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
" Highlight copied text
Plug 'machakann/vim-highlightedyank'
" Commentary plugin
Plug 'tpope/vim-commentary'
" File tree viewer with vim actions
Plug 'preservim/nerdtree'
let mapleader = " "
" Use system clipboard
set clipboard+=unnamedplus
" Disable sound
set vb t_vb =
" Set line number
set nu
set rnu
set showmodewidget
set colorfulmodewidget
" Do incremental searching.
set incsearch
set smartcase
" For regex turn magic on
set magic
" Use spaces instead of tabs
set expandtab
" 1 tab = 4 spaces
set shiftwidth = 4
set tabstop = 4
" Smart indent
set si
" Map buffer actions
nmap <leader>d :bd<cr>
nmap <leader>p :bp<cr>
nmap <leader>n :bn<cr>
" Smart line join on J
set ideajoin
" Fuzzy finder
nmap <leader>ff <Action>(SearchEverywhere)
" Code navigation
nmap gd <Action>(GotoDeclaration)
nmap gy <Action>(GotoTypeDeclaration)
nmap gi <Action>(GotoImplementation)
nmap gr <Action>(ShowUsages)
nmap <leader>rn <Action>(RenameElement)
" Show suggested fixes
nmap <leader>as <Action>(ShowIntentionActions)