-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
55 lines (51 loc) · 1.12 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
set wildignore+=*/.yarn-cache/*,*/.vscode/*,*/bin/*,*/obj/*,*/node_modules/*,*/.git/*
set completeopt-=preview
set secure
set exrc
set encoding=utf-8
setglobal fileencoding=utf-8
set nohidden
set nohlsearch
set autoindent
set copyindent
set smartindent
set breakindent
set nowrap
set noexpandtab
set tabstop=4
set shiftwidth=4
set softtabstop=4
set scrolloff=5
set sidescrolloff=5
set nocompatible
set ttyfast
set noerrorbells
set incsearch
set smartcase
set showmatch
set diffopt=filler,iwhite
set background=dark
set autoread
set history=1000
set undolevels=1000
set nobackup
set noswapfile
set title
set noruler
set shortmess+=Ia
set ttimeoutlen=0
set magic
set t_ti= t_te=
set synmaxcol=900
set cursorline
set cursorcolumn
set noshowmode
set pastetoggle=<F2>
set backspace=indent,eol,start
set whichwrap=h,l,~,[,]
cmap w!! w !sudo tee % >/dev/null
" return to old position when reopening files
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g`\"" | endif
endif
syntax on