-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ideavimrc
71 lines (56 loc) · 1.46 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
" .ideavimrc is a configuration file for IdeaVim plugin. It uses
" the same commands as the original .vimrc configuration.
" You can find a list of commands here: https://jb.gg/h38q75
" Find more examples here: https://jb.gg/share-ideavimrc
let mapleader = " "
set scrolloff=15
set number
set relativenumber
set incsearch
set hlsearch
set ignorecase
set smartcase
set idearefactormode=keep
set ideajoin
set clipboard=ideaput
set clipboard+=unnamedplus
set notimeout
set visualbell
set cursorline
sethandler <C-s> a:vim
sethandler <C-c> a:vim
sethandler <C-e> a:ide
sethandler <C-v> a:ide
map <C-c> <Esc>
map <C-s> <Action>(SaveAll)
map <C-d> <C-d>zz
map <C-u> <C-u>zz
" Windows
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l
" Tabs
map <A-h> <Action>(PreviousTab)
map <A-l> <Action>(NextTab)
map <leader>tL <Action>(MoveEditorToOppositeTabGroup)
map <leader>tl <Action>(SplitVertically)
map <leader>tj <Action>(SplitHorizontally)
map <leader>tc <Action>(Unsplit)
map <leader>ff <Action>(FindInPath)
map <Esc> :noh<cr>
map H ^
map L $
" Global Search
map <leader><leader> <Action>(SearchEverywhere)
" Move lines
map <A-k> <Action>(MoveLineUp)
map <A-j> <Action>(MoveLineDown)
" Don't use Ex mode, use Q for formatting.
map Q gq
" New line without entering insert mode
map <CR> m`o<Esc>``
" --- Enable IdeaVim plugins https://jb.gg/ideavim-plugins
Plug 'machakann/vim-highlightedyank'
Plug 'tpope/vim-commentary'
map <leader>ir :source ~/.ideavimrc<CR>