-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
55 lines (42 loc) · 1.14 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
51
52
53
54
55
" Check if the .vim/bundle/Vundle.vim directory exists
" and apply the Vundle configuration accordingly.
if isdirectory(expand("~/.vim/bundle/Vundle.vim"))
source ~/.vim/bundle/vundle.vim
endif
" Display line number
set number
" Disable VIM swap and backup
set nobackup
set nowritebackup
set noswapfile
" Indenting source code
set autoindent
set expandtab
set tabstop=4
set shiftwidth=4
" Uncomment the following to have Vim jump to the last position when
" reopening a file
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
" Enable file type detection and related features,
" file type-specific plugins,
" and file type-specific indentation
filetype plugin indent on
" UTF-8
set encoding=utf-8
set fileencoding=utf-8
set fileencodings=ucs-bom,utf-8,chinese
set ambiwidth=double
" Syntax
syntax on
set showmatch
" Backspace
set backspace=indent,eol,start
" Highlight search
set hlsearch
" Maximum amount of memory (in Kbyte) to use for pattern matching.
set mmp=10000
" disable beep and flash with an autocmd
set noerrorbells visualbell t_vb=
if has('autocmd')
autocmd GUIEnter * set visualbell t_vb=
endif