-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.ideavimrc
104 lines (80 loc) · 2.4 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
set number
set noswapfile
hi MatchParen term=standout ctermbg=White ctermfg=White guibg=White guifg=White
set clipboard=unnamed,unnamedplus
set iminsert=2
"set scrolloff=10
nnoremap x "_x
vnoremap x "_x
" insertモードから抜ける
inoremap <silent> jj <ESC>
inoremap <silent> <C-j> j
inoremap <silent> kk <ESC>
inoremap <silent> <C-k> k
" insert モードで Alt + hjkl でカーソル移動
inoremap <A-h> <left>
inoremap <A-j> <down>
inoremap <A-k> <up>
inoremap <A-l> <right>
filetype indent on
set incsearch
set ignorecase
set shiftwidth=4
set shiftround
set autoindent smartindent
set expandtab
set smarttab
set smartcase
nnoremap m <Nop>
" ESCキー2度押しでハイライトの切り替え
nnoremap <silent><Esc><Esc> :<C-u>set nohlsearch!<CR>
nnoremap <CR> i<CR><Esc>
nnoremap s <Nop>
nnoremap sj <C-w>j
nnoremap sk <C-w>k
nnoremap sl <C-w>l
nnoremap sh <C-w>h
nnoremap sJ <C-w>J
nnoremap sK <C-w>K
nnoremap sL <C-w>L
nnoremap sH <C-w>H
nnoremap sn gt
nnoremap sm gT
nnoremap sr <C-w>r
nnoremap s= <C-w>=
nnoremap sw <C-w>w
nnoremap so <C-w>_<C-w>|
nnoremap sO <C-w>=
nnoremap sN :<C-u>bn<CR>
nnoremap sP :<C-u>bp<CR>
nnoremap st :<C-u>tabnew<CR>
nnoremap sT :<C-u>Unite tab<CR>
nnoremap ss :<C-u>sp<CR>
nnoremap sv :<C-u>vs<CR>
nnoremap sq :<C-u>q<CR>
nnoremap sQ :<C-u>bd<CR>
" https://ikenox.info/2017-12-25/ideavim-introduction
nnoremap <C-u> <Nop>
nnoremap <C-u><C-a> :action GotoAction<CR>
vnoremap <C-u><C-a> :action GotoAction<CR>
nnoremap <C-u><C-e> :action SearchEverywhere<CR>
nnoremap <C-u><C-s> :action FileStructurePopup<CR>
nnoremap <C-u><C-g> :action FindInPath<CR>
nnoremap <C-u><C-d> :action GotoDeclaration<CR>
nnoremap <C-u><C-s> :action GotoSuperMethod<CR>
nnoremap <C-u><C-b> :action JumpToLastChange<CR>
nnoremap <C-u><C-u> :action FindUsages<CR>
nnoremap <C-u><C-r> :action Refactorings.QuickListPopupAction<CR>
nnoremap <C-u><C-g> :action Back<CR>
nnoremap <C-u><C-l> :action Forward<CR>
inoremap <C-u><C-o> :action InsertLiveTemplate<CR>
nnoremap <C-u><C-q> :action QuickImplementations<CR>
nnoremap <C-u><C-p> :action PasteMultiple<CR>
nnoremap <C-u><C-P> :action PasteMultiple<CR>
nnoremap == :action ReformatCode<CR>
vnoremap == :action ReformatCode<CR>
nnoremap cc :action CommentByLineComment<CR>
vnoremap cc :action CommentByLineComment<CR>
nnoremap <C-u><C-f> :action ShowIntentionActions<CR>
nnoremap <C-u><C-p> :action PasteMultiple<CR>
nnoremap <C-u><C-P> :action PasteMultiple<CR>