-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.ideavimrc
58 lines (47 loc) · 1.16 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
" Level 1: Beginner
set number
set cursorline
hi CursorLine term=bold cterm=bold guibg=Grey40
syntax on
" 80 line limit
" Remember that the gruvbox theme will override the colours!
highlight ColorColumn ctermbg=black
call matchadd('ColorColumn', '\%81v', 100)
" Key remaps
inoremap jj <Esc>
inoremap JJ <Esc>
nnoremap `` :q! <CR>
nnoremap <space> :!
nnoremap o o<esc>
nnoremap O O<esc>
nnoremap ss :w <CR>
nnoremap SS :w <CR>
nnoremap bn :bn <CR>
nnoremap bf :bf <CR>
nnoremap ff :NERDTreeToggle <CR>
nnoremap tt :term bash <CR>
"inoremap rrr :so % <CR>
" Indentation
set autoindent
set tabstop=4
set shiftwidth=4
" Level 2: Intermediate
set wildmenu
set wildmode=list:longest
set wildignore=*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx
set incsearch
" Run code from Vim/Neovim
nnoremap py :w <CR>:!clear <CR>:!python3 % <CR>
nnoremap gcc :w <CR>:!clear <CR>:!gcc % && ./a.out <CR>
" Included plugins
set nerdtree
set highlightedyank
" NerdTree hidden files
let NERDTreeShowHidden=1
" vim-move customisation
" Use capslock to move!
let g:move_key_modifier = 'S'
let g:move_key_modifier_visualmode = 'S'
" Set colour theme
set background=dark
colorscheme gruvbox