-
Notifications
You must be signed in to change notification settings - Fork 0
/
.ideavimrc
40 lines (34 loc) · 1.08 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
" plugins
Plug 'preservim/nerdtree'
Plug 'tpope/vim-surround'
Plug 'tpope/vim-commentary'
Plug 'machakann/vim-highlightedyank'
Plug 'chrisbra/matchit'
set clipboard=unnamedplus
set quickscope
set scrolloff=10
set relativenumber
let mapleader = " "
let g:qs_highlight_on_keys = ['f', 'F', 't', 'T']
" navigation
nmap <leader>fs :action FileStructurePopup<CR>
nmap <leader>h :action PreviousTab<CR>
nmap <leader>l :action NextTab<CR>
nmap <C-h> :action PrevSplitter<CR>
nmap <C-l> :action NextSplitter<CR>
nmap <leader>t :action ActivateTerminalToolWindow<CR>
nmap <leader>z :action ToggleDistractionFreeMode<CR>
nmap <leader>sf :action GotoFile<CR>
nmap <leader>sg :action FindInPath<CR>
" reformat code
nmap <leader>f :action ReformatCode<CR>
" breakpoints
nmap <leader>b :action ToggleLineBreakpoint<CR>
" harpoon actions
nmap <leader>a :action AddToHarpoon<CR>
nmap <leader>e :action ShowHarpoon<CR>
nmap <leader>1 :action GotoHarpoon1<CR>
nmap <leader>2 :action GotoHarpoon2<CR>
nmap <leader>3 :action GotoHarpoon3<CR>
nmap <leader>4 :action GotoHarpoon4<CR>
nmap <leader>5 :action GotoHarpoon5<CR>