-
Notifications
You must be signed in to change notification settings - Fork 8
/
ideavimrc
84 lines (68 loc) · 1.79 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
let mapleader = " "
let maplocalleader = ','
set surround
set iskeyword
set ignorecase
set incsearch
set smartcase
set scrolloff=3 " 3 lines above/below cursor when scrolling
set number
set showmode
set gdefault
set matchpairs
" Use the OS clipboard by default
if has('clipboard')
if has('unnamedplus')
set clipboard=unnamed,unnamedplus
else
set clipboard=unnamed
endif
endif
" Enable native idea paste action for put operations
set clipboard+=ideaput
inoremap jj <Esc>`^
nnoremap <C-c> <Esc>
nnoremap w :w<CR>
nnoremap e :action CloseContent<CR>
nnoremap S :action FindInPath<CR>
nnoremap s :action Find<CR>
vnoremap S :action FindInPath<CR>
vnoremap s :action Find<CR>
nmap <leader>p :action GotoFile<CR>
nmap gd :action GotoImplementation<CR>
nmap gu :action FindUsages<CR>
nmap gf :action FileStructurePopup<CR>
nmap gs :action GotoSymbol<CR>
nmap <leader>r :action RenameElement<CR>
nmap K :action QuickJavaDoc<CR>
nmap ; :
nmap <Leader>1 :action GoToTab1<CR>
nmap <Leader>2 :action GoToTab2<CR>
nmap <Leader>3 :action GoToTab3<CR>
nmap <Leader>4 :action GoToTab4<CR>
nmap <Leader>5 :action GoToTab5<CR>
nmap <Leader>6 :action GoToTab6<CR>
nmap <Leader>7 :action GoToTab7<CR>
nmap <Leader>8 :action GoToTab8<CR>
nmap <Leader>9 :action GoToTab9<CR>
noremap <leader>y "*y
noremap <leader>yy "*Y
" Copy until the end of the line
noremap Y y$
" Indent selection in visual mode
vnoremap <Space>i =
nnoremap <BS> :action Back<CR>
nnoremap <C-i> :action Forward<CR>
nmap <C-h> <c-w>h
nmap <C-l> <c-w>l
nmap <C-k> <c-w>k
nmap <C-j> <c-w>j
" Moving blocks of text in visual mode
vnoremap < <gv
vnoremap > >gv
noremap <C-w>v :vsplit<cr><C-w>W<C-w><space>
noremap <C-w><Space> :action MoveEditorToOppositeTabGroup<cr>
set multiple-cursors
set visualbell
set noerrorbells
set ideajoin