aboutsummaryrefslogtreecommitdiffstats
path: root/vim/.vimrc
blob: 130f31d9125911471daedc0251bb4ff6fff1c26d (plain) (blame)
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
" Disable compatibility with Vi to enable
" Vim's extended features and modern behaviors.
set nocompatible

" Enable a number column with numbers relative
" to the current line the cursor is on.
set relativenumber

" Enable filetype detection to apply filetype-specific
" settings e.g. syntax highlighting and enable filetype
" plugins.
filetype plugin on

" Turn on syntax highlighting
syntax on

" Convert the tab character into spaces
set expandtab

" Define the width of a tab character.
set tabstop=4

" Number of spaces to insert on tab key press
set softtabstop=4

" Number of spaces to use for auto-indentation
set shiftwidth=4