aboutsummaryrefslogtreecommitdiff
path: root/user/ideavim/ideavimrc
blob: fed7bc9118146cdf68145bd4fda2b888f501b23b (plain)
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
set clipboard+=unnamed

" Put Vim's directional keys on the Colemak-DH home-row positions.
noremap k h
noremap K H
noremap n j
noremap N J
noremap e k
noremap E K
noremap i l
noremap I L

" Move the displaced commands onto the old directional keys. Use `o` for
" insert/inner text objects and `l` for open-line/switch-selection-end.
noremap h e
noremap H E
noremap o i
noremap O I
noremap l o
noremap L O

" Navigate search results.
noremap <Space> n
noremap <BS> N

" Remap g-prefixed commands.
noremap gn gj
noremap ge gk
noremap g<Space> gn
noremap g<BS> gN
noremap gh ge
noremap gk gh

" Focus a window in the given direction.
noremap <C-w>k <C-w>h
noremap <C-w><C-k> <C-w>h
noremap <C-w>n <C-w>j
noremap <C-w><C-n> <C-w>j
noremap <C-w>e <C-w>k
noremap <C-w><C-e> <C-w>k
noremap <C-w>i <C-w>l
noremap <C-w><C-i> <C-w>l

" Disable annoying bell sound. Note that visual bell isn't implemented so nothing will be heard or seen.
set visualbell