-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
52 lines (35 loc) · 1.1 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
" Getting help: https://vimhelp.org/
" Set compatibility to Vim only
set nocompatible
" Automatically wrap text that extends beyond screen length
set wrap
" Show line numbers
set number
" Status bar
set laststatus=2
" Show matcing brackets
set showmatch
" Automatically save before commands like :next and :make
set autowrite
" Syntax highlighting
syntax on
" Highlight matching pairs of brackets. Use the '%' character to jump between them.
set matchpairs+=<:>
" Show color column at 80 characters width
set colorcolumn=80
" Set shift width to 4 spaces
set shiftwidth=4
" Show file stats
set ruler
" Blink cursor on error instead of beeping.
set visualbell
" Reacts to the syntax/style of the code you are editing
set smartindent
" Makes sure that spaces are used for indenting lines, even when you press the "Tab" key
set expandtab
" This will insert 4 spaces for a line indent
set tabstop=4
" Manages the indentation when you use the ">>" or "<<" operators to add or remove indentation to an already existing line/block of code
set shiftwidth=4
" Show what mode you are currently editing in
set showmode