-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_ideavimrc
67 lines (50 loc) · 1.35 KB
/
dot_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
set idearefactormode=keep
set ideajoin
set number relativenumber
set noerrorbells
set expandtab
set shiftwidth=2
set tabstop=2 softtabstop=2
set autoindent
set smartindent
set scrolloff=3
set nowrap
set clipboard^=unnamed,unnamedplus
set smartcase
set noswapfile
set nobackup
set undofile
set incsearch
set termguicolors
set hidden
set updatetime=200
set colorcolumn=80
highlight ColorColumn ctermbg=0 guibg=lightgrey
" spell checking
set spell
set spelllang=en,en_us
let mapleader = " "
" navigate windows
nnoremap <Leader>h <C-w>h
nnoremap <Leader>j <C-w>j
nnoremap <Leader>k <C-w>k
nnoremap <Leader>l <C-w>l
nnoremap <Leader>H :action PreviousTab<CR>
nnoremap <Leader>L :action NextTab<CR>
nmap <silent> <C-w>C :action CloseEditor<CR>
" move in visual mode
vnoremap J :action MoveLineDown<CR>
vnoremap K :action MoveLineUp<CR>
" search everywhere
nnoremap <C-p> :action SearchEverywhere<CR>
" Remap keys for gotos
nmap <silent> <Leader>gd :action GotoDeclaration<CR>
nmap <silent> <Leader>gy :action GotoDeclaration<CR>
nmap <silent> <Leader>gi :action GotoImplementation<CR>
nmap <silent> <Leader>gr :action FindUsages<CR>
nmap <silent> <Leader>gt :action GotoTest<CR>
" Refactorings
vmap T :action Refactorings.QuickListPopupAction<cr>
nmap <leader>rn :action RenameElement<cr>
nmap <leader>rg :action Generate<cr>
nmap <leader>rI :action OptimizeImports<cr>