-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ideavimrc
65 lines (49 loc) · 1.12 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
" ideavim plugins
Plug 'vim-surround'
Plug 'vim-easymotion'
Plug 'vim-multiple-cursors'
" -----------
" Misc config
" -----------
set number
set relativenumber
set scrolloff=5
set splitright
" ignore case if search is only lowercase
set ignorecase
set smartcase
set hlsearch
set incsearch
" -------------
" Abbreviations
" -------------
abbr esle else
abbr retrun return
abbr maintance maintenance
" -----------
" Key mapping
" -----------
" Set leader to space
let mapleader = " "
" Window navigations with ctrl
nnoremap <C-J> <C-W>j
nnoremap <C-K> <C-W>k
nnoremap <C-L> <C-W>l
nnoremap <C-H> <C-W>h
" Paste from clipboard in insert mode
sethandler <C-V> n-v:vim i:ide
" Copy to clipboard in visual mode
vnoremap <C-C> "+y
sethandler <C-S> a:ide
" Copy to end of line
map <silent> Y y$
" switch to previous buffer
nnoremap <leader><Tab> :b#<CR>
" EasyMotion
map , <Plug>(easymotion-prefix)
map ,, <Plug>(easymotion-bd-w)
map ,f <Plug>(easymotion-bd-f)
let g:EasyMotion_smartcase = 1
nmap <leader>f <Action>(Tool_External Tools_Black)
" ideavim stuff
set ideajoin