-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathideavimrc
More file actions
53 lines (37 loc) · 1.03 KB
/
Copy pathideavimrc
File metadata and controls
53 lines (37 loc) · 1.03 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
46
47
48
49
50
51
52
set relativenumber number
" Disable audible beeps
set visualbell
set noerrorbells
" https://github.com/sei40kr/idea-doom-emacs
source ~/.config/ideavim/idea-doom-emacs/init.vim
map <Leader>: <Action>(GotoAction)
let g:WhichKeyDesc_find_action = '<leader>: Find action'
map <Leader>si <Action>(GotoSymbol)
let g:WhichKeyDesc_jump_to_symbol = '<leader>si Jump to symbol'
" Use Emacs keys while in insert mode
" Unbind C-g
nnoremap <C-g> <Esc>
vnoremap <C-g> <Esc>
inoremap <C-g> <Esc>a
" Go to first character
inoremap <C-a> <Esc>I
cnoremap <C-a> <Home>
" Go to end of line
inoremap <C-e> <Esc>A
cnoremap <C-e> <End>
" Delete character
inoremap <C-d> <del>
" Go up
inoremap <C-p> <up>
" Go down
inoremap <C-n> <down>
" Go right
inoremap <C-f> <right>
" Go left
inoremap <C-b> <left>
" Delete to line end
inoremap <C-k> <Esc>:action EditorDeleteToLineEnd<CR>a
" Go to next word
inoremap <A-f> <Esc>:action EditorNextWord<CR>a
" Go to previous word
inoremap <A-b> <Esc>:action EditorPreviousWord<CR>i