-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ideavimrc
42 lines (33 loc) · 1.24 KB
/
.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
" _ _ _
" (_) __| | ___ __ ___ _(_)_ __ ___ _ __ ___
" | |/ _` |/ _ \/ _` \ \ / / | '_ ` _ \| '__/ __|
" | | (_| | __/ (_| |\ V /| | | | | | | | | (__
" |_|\__,_|\___|\__,_| \_/ |_|_| |_| |_|_| \___|
"
" +----------------------------------------------------------------------------+
" | Mappings |
" +----------------------------------------------------------------------------+
" +----------------------------------------------+
" | Normal |
" +----------------------------------------------+
" EOL Semicolon
noremap <C-m> A;<Esc>
" +----------------------------------------------+
" | Insert |
" +----------------------------------------------+
" jk/kj to leave insert mode
:inoremap jk <esc>
:inoremap kj <esc>
:xnoremap i <esc>
" Auto use the system clipboard
set clipboard=unnamedplus
set clipboard+=ideaput
" Move current line up or down
nnoremap <C-j> :m .+1<CR>==
nnoremap <C-k> :m .-2<CR>==
e
vnoremap <C-j> :m '>+1<CR>gv=gv
vnoremap <C-k> :m '<-2<CR>gv=gv
" Wrap files at 80 chars
:set textwidth=80
:set hls