-
Notifications
You must be signed in to change notification settings - Fork 0
/
edit.rc.vim
59 lines (49 loc) · 1.24 KB
/
edit.rc.vim
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
58
59
"---------------------------------------------------------------------------
" Edit:
"
" Smart insert tab setting.
set smarttab
" Don't exchange tab to spaces.
set noexpandtab
" Substitute <Tab> with blanks.
"set tabstop=8
" Spaces instead <Tab>.
set softtabstop=4
" Autoindent width.
set shiftwidth=4
" Round indent by shiftwidth.
set shiftround
" Enable smart indent.
set autoindent smartindent
" Enable modeline.
set modeline
" Enable backspace delete indent and newline.
set backspace=indent,eol,start
" Highlight parenthesis.
set showmatch
" Highlight when CursorMoved.
set cpoptions-=m
set matchtime=3
" Highlight <>.
set matchpairs+=<:>
" Completion setting.
set completeopt=menuone
" Don't complete from other buffer.
set complete=.
"set complete=.,w,b,i,t
" Set popup menu max height.
set pumheight=20
" Ignore case on insert completion.
set infercase
" Enable virtualedit in visual block mode.
set virtualedit=block
" Set keyword help.
set keywordprg=:help
" Disable paste.
autocmd MyAutoCmd InsertLeave *
\ if &paste | set nopaste mouse=a | echo 'nopaste' | endif |
\ if &l:diff | diffupdate | endif
" Update diff.
autocmd MyAutoCmd InsertLeave * if &l:diff | diffupdate | endif
" Use autofmt.
set formatexpr=autofmt#english#formatexpr()