-
Notifications
You must be signed in to change notification settings - Fork 0
/
ideavimrc
43 lines (35 loc) · 809 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
"
" Seteting
"
let mapleader=" "
set incsearch
set clipboard=unnamed
"
" Moving {{{1
"
nnoremap <silent> <C-j> :m .+1<CR>==
nnoremap <silent> <C-k> :m .-2<CR>==
vnoremap <silent> <C-j> :m '>+1<CR>gv=gv
vnoremap <silent> <C-k> :m '<-2<CR>gv=gv
inoremap jk <Esc>
inoremap jl <Esc>O
inoremap j; <Esc>o
"
" Edit {{{1
"
nnoremap Y y$
nnoremap <silent> zj o<Esc>
nnoremap <silent> zk O<Esc>
inoremap <silent> ;zj <esc>:call append(line('.'), '')<CR>a
inoremap <silent> ;zk <esc>:call append(line('.')-1, '')<CR>a
nnoremap <silent> zh i<Space><Right><Esc>
nnoremap <silent> zl a<Space><Left><Esc>
"
" Plugins
"
" https://github.com/AlexPl292/IdeaVim-EasyMotion
set easymotion
nmap <Leader>f <Leader><Leader>f
nmap <Leader>F <Leader><Leader>F
nmap <Leader>j <Leader><Leader>j
nmap <Leader>k <Leader><Leader>k