-
-
Notifications
You must be signed in to change notification settings - Fork 8
/
.vimrc
42 lines (41 loc) · 761 Bytes
/
.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
" from pengwin
source /etc/vim/vimrc
syntax on
set background=dark
set visualbell
set noerrorbells
" custom settings
set number
set cursorline
"tab view setting
set tabstop=2
set shiftwidth=2
"tab move happen
set softtabstop=2
"tab key function
set expandtab
if expand("%:r") == 'Makefile'
set noexpandtab
endif
"indent settings
set smartindent
filetype indent on
"paste setting
set pastetoggle=<F2>
"clipboard collaboration
set clipboard&
set clipboard^=unnamedplus
"backspace feature
set backspace=indent,eol,start
"ftplugin
filetype plugin on
"c or cpp language
let c_space_errors=1
let c_no_bracket_error=1
let c_curly_error=1
let g:load_doxygen_syntax=1
let doxygen_javadoc_autobrief=0
"fold
set foldmethod=syntax
" jj to esc
inoremap <silent> jj <ESC>