-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
50 lines (43 loc) · 1.17 KB
/
.vimrc
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
inoremap <C-A> <C-O>I
inoremap <C-E> <C-O>A
inoremap <C-Y> <C-O>p
inoremap <C-D> <C-O>x
inoremap <C-N> <C-O>j
inoremap <C-P> <C-O>k
inoremap <C-F> <C-O>l
inoremap <C-B> <C-O>h
inoremap <C-O> <C-O>O
nn <C-N> gj
nn <C-P> gk
vn <C-N> gj
vn <C-P> gk
" ctrl-k to clean search highlight
nn <silent><C-K> :let @/ = ""<CR>
syntax enable
set nocp nowrap
set ruler number showmode
set is hls
filetype indent on
set foldmethod=indent
set tabstop=2 shiftwidth=2 expandtab
au BufRead,BufNewFile Makefile* set noexpandtab
set tw=0
if(has('nvim'))
set laststatus=0
set guicursor="\<Esc>[3 q"
endif
if(has('clipboard'))
set clipboard=unnamed
endif
hi LineNr ctermfg=grey
hi Comment ctermfg=22
hi Pmenu ctermbg=darkgrey ctermfg=black
hi PmenuSel ctermbg=lightgrey ctermfg=black
hi BadWhitespace ctermbg=red guibg=red
" Display tabs at the beginning of a line in Python mode as bad.
au BufRead,BufNewFile *.py,*.pyw match BadWhitespace /^\t\+/
" Make trailing whitespace be flagged as bad.
au BufRead,BufNewFile *.py,*.pyw,*.c,*.h match BadWhitespace /\s\+$/
au BufRead,BufNewFile *py,*pyw set tabstop=8
au BufRead,BufNewFile *.py,*pyw set shiftwidth=4
au BufRead,BufNewFile *.py,*.pyw set expandtab