-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
55 lines (44 loc) · 1.41 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
syntax on
set nocompatible
set encoding=utf-8 nobomb
" UI options
set t_Co=256 " Force 256 color term
set background=dark
set ruler " Show the cursor position
set number " Enable line numbers
highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE
set nowrap " Do not wrap lines
set cursorline " Highlight current line
highlight CursorLine cterm=NONE ctermfg=NONE ctermbg=52
" Responsiveness
set ttyfast " Send more characters at a given time
set lazyredraw " Don't redraw when we don't have to
" No backup & swap files
set nobackup
set noswapfile
" Undo configuration
set undodir=~/.vim/undo
set undofile
set undolevels=1000
set undoreload=10000
" History
set history=1000
" Search
set hlsearch " Highlight searches ; :noh to turn off highlighting until the next search
set ignorecase " Ignore case of searches
set incsearch " Highlight dynamically as pattern is typed
set wrapscan
" Disable beep
set noerrorbells
set visualbell
set t_vb=
" Indentation
set smartindent
set expandtab " Expand tabs to spaces
set shiftwidth=4 " The number of spaces for indenting
set softtabstop=4 " Tab key results in 4 spaces
set smarttab " At start of line, <Tab> inserts shiftwidth spaces, <Bs> deletes shiftwidth spaces
autocmd Filetype yaml setlocal expandtab shiftwidth=2 softtabstop=2
autocmd Filetype make setlocal noexpandtab shiftwidth=8 softtabstop=0
" Fix backspace behavior
set backspace=indent,eol,start