-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathideavimrc
51 lines (42 loc) · 1.27 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
" Tired of hitting shift
nnoremap ; :
nnoremap : ;
vnoremap ; :
vnoremap : ;
" Really not a big fan of trailing whitespace, mark it red
set list listchars=tab:>-,trail:·,precedes:<,extends:>
noremap <Leader>hr <C-U>set nolist
" Vertical Column Limiter
" highlight OverLength ctermbg=red ctermfg=white guibg=#592929
" match OverLength /\%121v.\+/
set colorcolumn=121
highlight ColorColumn ctermbg=2
" my settings
set expandtab
set tabstop=4
set shiftwidth=4
set laststatus=2
set background=dark
set visualbell
set number
"set numberwidth=5
"
noremap <Leader>B :<C-U>set guifont=Menlo:h32 <CR>
let mapleader=","
" Navigate next buffer / previous buffer
nnoremap <C-n> :<C-U>bn<CR>
nnoremap <C-b> :<C-U>bp<CR>
" Window navigation
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-h> <C-w>h
nnoremap <C-l> <C-w>l
" Mapping Vim plugin like things to IntelliJ
noremap <Leader>jd :<C-U>action QuickJavaDoc<CR>
noremap <Leader>s :<C-U>action Vcs.Show.Local.Changes<CR>
noremap <Leader>nf :<C-U>action SelectInProjectView<CR>
noremap <Leader>nt :<C-U>action SelectInProjectView<CR>
noremap <Leader>b :<C-U>action Annotate<CR>
noremap <Leader>rr :<C-U>action Rerun<CR>
noremap <Leader>df :<C-U>action ToggleDistractionFreeMode<CR>
noremap <Leader>pp :<C-U>action TogglePresentationMode<CR>